Search
lxdream.org :: lxdream/src/gtkui/main_win.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gtkui/main_win.c
changeset 543:361ec0a70cf2
prev537:d924be49e192
next545:fdcdcd8b9fd1
author nkeynes
date Thu Nov 22 11:10:15 2007 +0000 (13 years ago)
permissions -rw-r--r--
last change Re-add "Load Binary" menu item (misplaced in GUI rewrite)
Prevent running with no code loaded
file annotate diff log raw
1.1 --- a/src/gtkui/main_win.c Tue Nov 20 10:27:58 2007 +0000
1.2 +++ b/src/gtkui/main_win.c Thu Nov 22 11:10:15 2007 +0000
1.3 @@ -117,7 +117,7 @@
1.4 void main_window_set_running( main_window_t win, gboolean running )
1.5 {
1.6 gtk_gui_enable_action( "Pause", running );
1.7 - gtk_gui_enable_action( "Run", !running );
1.8 + gtk_gui_enable_action( "Run", !running && dreamcast_can_run() );
1.9 gtk_statusbar_pop( GTK_STATUSBAR(win->statusbar), 1 );
1.10 gtk_statusbar_push( GTK_STATUSBAR(win->statusbar), 1, running ? "Running" : "Stopped" );
1.11 }
.