- 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:
parent
ba9b28b0c8
commit
eb9546a63c
|
@ -161,7 +161,8 @@ SchedulablesTreeWidget::on_button_press_event(GdkEventButton* 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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue