From c851625d6081445fd5e6192aecb526fca8f7f72f Mon Sep 17 00:00:00 2001 From: jules Date: Fri, 29 Jun 2007 08:47:48 +0000 Subject: [PATCH] --- .../application/juce_ApplicationProperties.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/juce_appframework/application/juce_ApplicationProperties.cpp b/src/juce_appframework/application/juce_ApplicationProperties.cpp index 9476bf4bd3..015d87a23c 100644 --- a/src/juce_appframework/application/juce_ApplicationProperties.cpp +++ b/src/juce_appframework/application/juce_ApplicationProperties.cpp @@ -87,10 +87,10 @@ bool ApplicationProperties::testWriteAccess (const bool testUserSettings, String filenames; if (! userOk) - filenames << T("\n") << getUserSettings()->getFile().getFullPathName(); + filenames << "\n" << getUserSettings()->getFile().getFullPathName(); if (! commonOk) - filenames << T("\n") << getCommonSettings()->getFile().getFullPathName(); + filenames << "\n" << getCommonSettings()->getFile().getFullPathName(); AlertWindow::showMessageBox (AlertWindow::WarningIcon, appName + TRANS(" - Unable to save settings"), @@ -144,7 +144,7 @@ PropertiesFile* ApplicationProperties::getCommonSettings() if (commonProps == 0 || ! commonProps->save()) { delete commonProps; - commonProps = userProps; + commonProps = getUserSettings(); } } @@ -154,7 +154,7 @@ PropertiesFile* ApplicationProperties::getCommonSettings() bool ApplicationProperties::saveIfNeeded() { return (userProps == 0 || userProps->saveIfNeeded()) - && (commonProps == 0 || commonProps->saveIfNeeded()); + && (commonProps == 0 || commonProps == userProps || commonProps->saveIfNeeded()); } void ApplicationProperties::closeFiles()