little hack to allow arbitrary commands in the toolbar
This commit is contained in:
parent
146a38c776
commit
ba604ac821
1 changed files with 1 additions and 2 deletions
|
@ -120,8 +120,7 @@ ToolbarItem *ToolFactory::create(const std::string &name, const FbTk::FbWindow &
|
|||
dynamic_cast<ButtonTheme &>(*m_button_theme),
|
||||
screen().imageControl());
|
||||
|
||||
} else if (name == "nextwindow" ||
|
||||
name == "prevwindow") {
|
||||
} else {
|
||||
|
||||
FbTk::RefCount<FbTk::Command<void> > cmd(FbTk::CommandParser<void>::instance().parse(name));
|
||||
if (*cmd == 0) // we need a command
|
||||
|
|
Loading…
Reference in a new issue