revision 546:7d01e597a066
summary |
tree |
shortlog |
changelog |
graph |
changeset |
raw | bz2 | zip | gz changeset | 546:7d01e597a066 |
parent | 545:fdcdcd8b9fd1 |
child | 547:d6e00ffc4adc |
author | nkeynes |
date | Thu Dec 06 09:25:24 2007 +0000 (15 years ago) |
Suppress enable/disable actions if there's no gui
![]() | src/gtkui/gtkui.c | view | annotate | diff | log |
1.1 --- a/src/gtkui/gtkui.c Thu Nov 29 09:28:28 2007 +00001.2 +++ b/src/gtkui/gtkui.c Thu Dec 06 09:25:24 2007 +00001.3 @@ -349,8 +349,10 @@1.5 void gtk_gui_update( void )1.6 {1.7 - gtk_gui_enable_action("Run", dreamcast_can_run() && !dreamcast_is_running() );1.8 - gtk_gui_enable_action("Pause", dreamcast_is_running() );1.9 + if( global_action_group ) {1.10 + gtk_gui_enable_action("Run", dreamcast_can_run() && !dreamcast_is_running() );1.11 + gtk_gui_enable_action("Pause", dreamcast_is_running() );1.12 + }1.13 if( debug_win ) {1.14 debug_window_set_running( debug_win, FALSE );1.15 debug_window_update(debug_win);
.