From 45f00785e9b072e29dc7802f590d7af0e47898a2 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Thu, 30 Dec 2004 14:33:38 +0000 Subject: fixed remove workspace bug --- src/Screen.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Screen.cc b/src/Screen.cc index 2cf3292..10921e0 100644 --- a/src/Screen.cc +++ b/src/Screen.cc @@ -877,11 +877,15 @@ int BScreen::removeLastWorkspace() { //remove last workspace m_workspaces_list.pop_back(); - delete wkspc; + updateNetizenWorkspaceCount(); saveWorkspaces(m_workspaces_list.size()); + // must be deleted after we send notify!! + // so we dont get bad pointers somewhere + // while processing the notify signal + delete wkspc; return m_workspaces_list.size(); } -- cgit v0.11.2