little hack to allow arbitrary commands in the toolbar

This commit is contained in:
Mark Tiefenbruck 2008-05-02 05:47:30 -07:00
parent 146a38c776
commit ba604ac821

View file

@ -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