cur_zone(0),
mode(TOOL),
sel_wrap(selection),
- cur_tool(0)
+ cur_tool(0),
+ keep_status(0)
{
window.set_title("Railway Designer");
window.signal_close.connect(sigc::bind(sigc::mem_fun(this, &Designer::exit), 0));
cur_tool->update_selection(selection);
use_select_tool();
}
+ keep_status = 0;
window.tick();
root.tick();
cur_tool = tool;
cur_tool->signal_status.connect(sigc::mem_fun(this, &Designer::tool_status));
- tool_status(cur_tool->get_status());
+ if(keep_status<2)
+ tool_status(tool->get_status());
mode = TOOL;
+ keep_status = 1;
}
void Designer::use_select_tool()
void Designer::tool_status(const string &status)
{
lbl_status->set_text(status);
+ if(keep_status==1)
+ keep_status = 2;
}
void Designer::object_properties_response(int)