diff --git a/src/apps/webpositive/DownloadWindow.cpp b/src/apps/webpositive/DownloadWindow.cpp index 225b3e931c..22a8b010ea 100644 --- a/src/apps/webpositive/DownloadWindow.cpp +++ b/src/apps/webpositive/DownloadWindow.cpp @@ -47,6 +47,7 @@ #include "BrowserApp.h" #include "DownloadProgressView.h" +#include "SettingsKeys.h" #include "SettingsMessage.h" #include "WebDownload.h" #include "WebPage.h" @@ -256,8 +257,8 @@ DownloadWindow::MessageReceived(BMessage* message) case SETTINGS_VALUE_CHANGED: { BString string; - if (message->FindString("name", &string) == B_OK - && string == "download path" + if (message->FindString("name", &string) == B_OK + && string == kSettingsKeyDownloadPath && message->FindString("value", &string) == B_OK) { fDownloadPath = string; }