diff --git a/checkin_notes b/checkin_notes index a0ebb1bea8..c99674a4f4 100755 --- a/checkin_notes +++ b/checkin_notes @@ -4485,13 +4485,13 @@ David June 5 2003 add.C Tim June 5, 2003 - - Windiws GUI enhancement + - bug fix fixed "uploading" "downloading" problem fixed minor problem with updateGUI - - bug fix fixed "time of day" suspension check (was parsing XML incorrectly) + fixed "website" problem (missing "http://") client/ client_state.c prefs.c - wingui_mainwindow.cpp + wingui_mainwindow.cpp \ No newline at end of file diff --git a/client/win/wingui_mainwindow.cpp b/client/win/wingui_mainwindow.cpp index 556157aeb9..509defede1 100755 --- a/client/win/wingui_mainwindow.cpp +++ b/client/win/wingui_mainwindow.cpp @@ -1164,8 +1164,14 @@ PROJECT* CMainWindow::GetProjectFromContextMenu() { void CMainWindow::OnCommandProjectWebSite() { PROJECT *proj; + char url[263] = ""; + proj = GetProjectFromContextMenu(); - if (proj) ShellExecute(GetSafeHwnd(), "open", proj->master_url, "", "", SW_SHOWNORMAL); + if (proj) { + if (strncmp(proj->master_url, "http://", 7) != 0) // ***WARNING*** ASSUMING LOWER-CASE URL + sprintf(url, "http://"); + ShellExecute(GetSafeHwnd(), "open", strcat(url, proj->master_url), "", "", SW_SHOWNORMAL); + } } //////////