don't reuse old workspace settings, store method expects an empty message

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17129 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2006-04-14 09:55:00 +00:00
parent 8a9866347d
commit 8be3635fcf
2 changed files with 3 additions and 3 deletions

View File

@ -664,10 +664,7 @@ void
Desktop::StoreWorkspaceConfiguration(int32 index)
{
// store settings
const BMessage *oldSettings = fSettings->WorkspacesMessage(index);
BMessage settings;
if (oldSettings)
settings = *oldSettings;
fWorkspaces[index].StoreConfiguration(settings);
fSettings->SetWorkspacesMessage(index, settings);
fSettings->Save(kWorkspacesSettings);

View File

@ -53,6 +53,9 @@ Workspace::Private::RestoreConfiguration(const BMessage& settings)
}
/*!
\brief Store the workspace configuration in an empty message
*/
void
Workspace::Private::StoreConfiguration(BMessage& settings)
{