fixed remove workspace bug
This commit is contained in:
parent
96e62e53ae
commit
45f00785e9
1 changed files with 5 additions and 1 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue