diff options
author | Paul Wise <pabs3@bonedaddy.net> | 2012-01-19 09:53:42 +0800 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2012-01-21 22:46:05 -0800 |
commit | 1de439debee57e0fef0b07a57c75b5385f0a1898 (patch) | |
tree | ae23d343f9afe813687050a7d6415b8cd5e37a51 /src | |
parent | 04611a082ff45665bbeb5aa35b0eb6739a12e4e6 (diff) |
Check for the main window before starting
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -63,7 +63,7 @@ int main(int argc, char *argv[]) if ( graphics ) { /* Open the window */ mw = mainwindow_open(); - gtk_main(); + if(mw != NULL) gtk_main(); } else { while ( 1 ) { sleep(10); |