- Disabled all operations on schedulables from the GUI while the simulation is not stopped. Task #25

git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@977 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
elvez 2006-08-31 22:17:16 +00:00
parent ba9b28b0c8
commit eb9546a63c
1 changed files with 2 additions and 1 deletions

View File

@ -161,7 +161,8 @@ SchedulablesTreeWidget::on_button_press_event(GdkEventButton* event)
{ {
TreeView::on_button_press_event(event); TreeView::on_button_press_event(event);
if( (event->type == GDK_BUTTON_PRESS) && (event->button == 3) ) if((Simulation::get_instance().get_state() == Simulation::state_stopped) &&
(event->type == GDK_BUTTON_PRESS) && (event->button == 3) )
{ {
RefPtr<ActionGroup> action_group = Gtk::ActionGroup::create(); RefPtr<ActionGroup> action_group = Gtk::ActionGroup::create();