Mixer: Handle WM main window close event just like Quit menu comment (confirm save).

This commit is contained in:
Jonathan Moore Liles 2012-02-10 02:14:01 -08:00
parent a8888d40b4
commit 1d25063d11
1 changed files with 4 additions and 2 deletions

View File

@ -77,8 +77,10 @@ ensure_dirs ( void )
static void cb_main ( Fl_Double_Window *o, void *) static void cb_main ( Fl_Double_Window *o, void *)
{ {
if ( Fl::event_key() != FL_Escape ) if ( Fl::event() == FL_SHORTCUT && Fl::event_key() == FL_Escape )
o->hide(); return;
mixer->command_quit();
} }
int int