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),
|
dynamic_cast<ButtonTheme &>(*m_button_theme),
|
||||||
screen().imageControl());
|
screen().imageControl());
|
||||||
|
|
||||||
} else if (name == "nextwindow" ||
|
} else {
|
||||||
name == "prevwindow") {
|
|
||||||
|
|
||||||
FbTk::RefCount<FbTk::Command<void> > cmd(FbTk::CommandParser<void>::instance().parse(name));
|
FbTk::RefCount<FbTk::Command<void> > cmd(FbTk::CommandParser<void>::instance().parse(name));
|
||||||
if (*cmd == 0) // we need a command
|
if (*cmd == 0) // we need a command
|
||||||
|
|
Loading…
Reference in a new issue