Use the new SettingsKeys.h also in the DownloadsWindow.
git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@394 94f232f2-1747-11df-bad5-a5bfde151594
This commit is contained in:
parent
d5f0e82b84
commit
27ddac2e6e
@ -47,6 +47,7 @@
|
|||||||
|
|
||||||
#include "BrowserApp.h"
|
#include "BrowserApp.h"
|
||||||
#include "DownloadProgressView.h"
|
#include "DownloadProgressView.h"
|
||||||
|
#include "SettingsKeys.h"
|
||||||
#include "SettingsMessage.h"
|
#include "SettingsMessage.h"
|
||||||
#include "WebDownload.h"
|
#include "WebDownload.h"
|
||||||
#include "WebPage.h"
|
#include "WebPage.h"
|
||||||
@ -256,8 +257,8 @@ DownloadWindow::MessageReceived(BMessage* message)
|
|||||||
case SETTINGS_VALUE_CHANGED:
|
case SETTINGS_VALUE_CHANGED:
|
||||||
{
|
{
|
||||||
BString string;
|
BString string;
|
||||||
if (message->FindString("name", &string) == B_OK
|
if (message->FindString("name", &string) == B_OK
|
||||||
&& string == "download path"
|
&& string == kSettingsKeyDownloadPath
|
||||||
&& message->FindString("value", &string) == B_OK) {
|
&& message->FindString("value", &string) == B_OK) {
|
||||||
fDownloadPath = string;
|
fDownloadPath = string;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user