From f37c53e452b8f6b6b6e52841bdb2f50f5fb83fb1 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Sun, 18 Sep 2005 01:51:13 +0000 Subject: Temporary fixed a bug in the determination of the update host I had. --- ChangeLog | 2 ++ src/gui/updatewindow.cpp | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 44905d56..322c3164 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,8 @@ for existence of a file with same name before writing; In that case the screenshot's number is incremented until it finds an adequate name. + * src/gui/updatewindow.cpp: Corrected a bug in the determination + of the update host I had. 2005-09-18 Björn Steinbrink diff --git a/src/gui/updatewindow.cpp b/src/gui/updatewindow.cpp index 0c7bd7a7..f0aa4b5d 100644 --- a/src/gui/updatewindow.cpp +++ b/src/gui/updatewindow.cpp @@ -85,7 +85,11 @@ UpdaterWindow::UpdaterWindow(): mCancelButton->requestFocus(); setLocationRelativeTo(getParent()); - mUpdateHost = config.getValue("updatehost", "themanaworld.org/files"); + // That commented line causes problems if the client had a false value for an update host + // in its config file. + // The update host, unlike the home dir, isn't dynamically set at the start of the client. + //mUpdateHost = config.getValue("updatehost", "themanaworld.org/files"); + mUpdateHost = "themanaworld.org/files"; mBasePath = config.getValue("homeDir", "."); // Try to download the updates list @@ -238,6 +242,7 @@ int UpdaterWindow::downloadThread(void *ptr) UpdaterWindow *uw = reinterpret_cast(ptr); std::string outFilename; std::string url(uw->mUpdateHost + "/" + uw->mCurrentFile); + std::cout << url << std::endl; uw->setLabel(uw->mCurrentFile + " (0%)"); curl = curl_easy_init(); -- cgit v1.2.3-70-g09d2