From 3ae87b10f1f7f6c44f6c488bc96b46a5eaa6c327 Mon Sep 17 00:00:00 2001 From: stippi Date: Tue, 6 Apr 2010 23:55:21 +0000 Subject: [PATCH] Replace the remaining places where the string was redefined. git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@395 94f232f2-1747-11df-bad5-a5bfde151594 --- src/apps/webpositive/DownloadWindow.cpp | 5 +++-- src/apps/webpositive/SettingsWindow.cpp | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/apps/webpositive/DownloadWindow.cpp b/src/apps/webpositive/DownloadWindow.cpp index 22a8b010ea..7fa39a6b0a 100644 --- a/src/apps/webpositive/DownloadWindow.cpp +++ b/src/apps/webpositive/DownloadWindow.cpp @@ -143,8 +143,9 @@ DownloadWindow::DownloadWindow(BRect frame, bool visible, BPath downloadPath; if (find_directory(B_DESKTOP_DIRECTORY, &downloadPath) != B_OK) downloadPath.SetTo("/boot/home/Desktop"); - fDownloadPath = settings->GetValue("download path", downloadPath.Path()); - settings->SetValue("download path", fDownloadPath); + fDownloadPath = settings->GetValue(kSettingsKeyDownloadPath, + downloadPath.Path()); + settings->SetValue(kSettingsKeyDownloadPath, fDownloadPath); SetLayout(new BGroupLayout(B_VERTICAL)); diff --git a/src/apps/webpositive/SettingsWindow.cpp b/src/apps/webpositive/SettingsWindow.cpp index 8a7c4daa64..2f4a463691 100644 --- a/src/apps/webpositive/SettingsWindow.cpp +++ b/src/apps/webpositive/SettingsWindow.cpp @@ -211,7 +211,8 @@ SettingsWindow::_CreateGeneralPage(float spacing) { fDownloadFolderControl = new BTextControl("download folder", TR("Download folder:"), "", new BMessage(MSG_DOWNLOAD_FOLDER_CHANGED)); - fDownloadFolderControl->SetText(fSettings->GetValue("download path", "")); + fDownloadFolderControl->SetText( + fSettings->GetValue(kSettingsKeyDownloadPath, "")); fNewPageBehaviorCloneCurrentItem = new BMenuItem(TR("Clone current page"), NULL);