From 8be3635fcf058d72fadf6649b3f268c7f703787a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Fri, 14 Apr 2006 09:55:00 +0000 Subject: [PATCH] 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 --- src/servers/app/Desktop.cpp | 3 --- src/servers/app/Workspace.cpp | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/servers/app/Desktop.cpp b/src/servers/app/Desktop.cpp index 260de458a7..86b3240197 100644 --- a/src/servers/app/Desktop.cpp +++ b/src/servers/app/Desktop.cpp @@ -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); diff --git a/src/servers/app/Workspace.cpp b/src/servers/app/Workspace.cpp index 87e43642f1..c67e9ef1fc 100644 --- a/src/servers/app/Workspace.cpp +++ b/src/servers/app/Workspace.cpp @@ -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) {