aboutsummaryrefslogtreecommitdiff
path: root/src/Workspace.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Workspace.cc')
-rw-r--r--src/Workspace.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Workspace.cc b/src/Workspace.cc
index 4985c39..8a6bdbb 100644
--- a/src/Workspace.cc
+++ b/src/Workspace.cc
@@ -364,7 +364,7 @@ void Workspace::update(FbTk::Subject *subj) {
364 364
365 365
366void Workspace::setName(const std::string &name) { 366void Workspace::setName(const std::string &name) {
367 if (!name.empty()) { 367 if (!name.empty() && name != "") {
368 m_name = name; 368 m_name = name;
369 } else { //if name == 0 then set default name from nls 369 } else { //if name == 0 then set default name from nls
370 _FB_USES_NLS; 370 _FB_USES_NLS;
@@ -375,7 +375,7 @@ void Workspace::setName(const std::string &name) {
375 m_id + 1); //m_id starts at 0 375 m_id + 1); //m_id starts at 0
376 m_name = tname; 376 m_name = tname;
377 } 377 }
378 378
379 screen().updateWorkspaceNamesAtom(); 379 screen().updateWorkspaceNamesAtom();
380 380
381 menu().setLabel(m_name.c_str()); 381 menu().setLabel(m_name.c_str());