fixed remove workspace bug

This commit is contained in:
fluxgen 2004-12-30 14:33:38 +00:00
parent 96e62e53ae
commit 45f00785e9

View file

@ -877,11 +877,15 @@ int BScreen::removeLastWorkspace() {
//remove last workspace //remove last workspace
m_workspaces_list.pop_back(); m_workspaces_list.pop_back();
delete wkspc;
updateNetizenWorkspaceCount(); updateNetizenWorkspaceCount();
saveWorkspaces(m_workspaces_list.size()); 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(); return m_workspaces_list.size();
} }