summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ToolFactory.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ToolFactory.cc b/src/ToolFactory.cc
index e6d633e..51692ad 100644
--- a/src/ToolFactory.cc
+++ b/src/ToolFactory.cc
@@ -120,8 +120,7 @@ ToolbarItem *ToolFactory::create(const std::string &name, const FbTk::FbWindow &
120 dynamic_cast<ButtonTheme &>(*m_button_theme), 120 dynamic_cast<ButtonTheme &>(*m_button_theme),
121 screen().imageControl()); 121 screen().imageControl());
122 122
123 } else if (name == "nextwindow" || 123 } else {
124 name == "prevwindow") {
125 124
126 FbTk::RefCount<FbTk::Command<void> > cmd(FbTk::CommandParser<void>::instance().parse(name)); 125 FbTk::RefCount<FbTk::Command<void> > cmd(FbTk::CommandParser<void>::instance().parse(name));
127 if (*cmd == 0) // we need a command 126 if (*cmd == 0) // we need a command