aboutsummaryrefslogtreecommitdiff
path: root/src/fluxbox.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/fluxbox.cc')
-rw-r--r--src/fluxbox.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/fluxbox.cc b/src/fluxbox.cc
index 7958a27..42ff47d 100644
--- a/src/fluxbox.cc
+++ b/src/fluxbox.cc
@@ -1506,11 +1506,9 @@ void Fluxbox::save_rc() {
1506 sprintf(rc_string, "session.screen%d.workspaceNames: ", screen_number); 1506 sprintf(rc_string, "session.screen%d.workspaceNames: ", screen_number);
1507 string workspaces_string(rc_string); 1507 string workspaces_string(rc_string);
1508 1508
1509 for (unsigned int workspace=0; workspace < screen->numberOfWorkspaces(); workspace++) { 1509 const vector<string> names = screen->getWorkspaceNames();
1510 if (screen->getWorkspace(workspace)->name().size()!=0) 1510 for (size_t i=0; i < names.size(); i++) {
1511 workspaces_string.append(FbTk::FbStringUtil::FbStrToLocale(screen->getWorkspace(workspace)->name())); 1511 workspaces_string.append(FbTk::FbStringUtil::FbStrToLocale(names[i]));
1512 else
1513 workspaces_string.append("Null");
1514 workspaces_string.append(","); 1512 workspaces_string.append(",");
1515 } 1513 }
1516 1514