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

pull/3/head
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 *)
{
if ( Fl::event_key() != FL_Escape )
o->hide();
if ( Fl::event() == FL_SHORTCUT && Fl::event_key() == FL_Escape )
return;
mixer->command_quit();
}
int