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:
parent
8a9866347d
commit
8be3635fcf
@ -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);
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user