save the right number of workspaces to the rc when adding/removing one

This commit is contained in:
Dana Jansens 2002-05-29 09:11:41 +00:00
parent 77cf8a6f8a
commit 4787715525

View file

@ -960,7 +960,7 @@ BlackboxWindow *BScreen::getIcon(unsigned int index) {
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(),
@ -992,7 +992,7 @@ unsigned int BScreen::removeLastWorkspace(void) {
workspacesList.pop_back();
delete wkspc;
saveWorkspaces(getWorkspaceCount() - 1);
saveWorkspaces(getWorkspaceCount());
saveWorkspaceNames();
toolbar->reconfigure();