unsigned int BScreen::addWorkspace(void) {
Workspace *wkspc = new Workspace(this, workspacesList.size());
workspacesList.push_back(wkspc);
- saveWorkspaces(getWorkspaceCount() + 1);
+ saveWorkspaces(getWorkspaceCount());
saveWorkspaceNames();
workspacemenu->insert(wkspc->getName(), wkspc->getMenu(),
workspacesList.pop_back();
delete wkspc;
- saveWorkspaces(getWorkspaceCount() - 1);
+ saveWorkspaces(getWorkspaceCount());
saveWorkspaceNames();
toolbar->reconfigure();