Mixer: Handle WM main window close event just like Quit menu comment (confirm save).
This commit is contained in:
parent
a8888d40b4
commit
1d25063d11
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue