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 *)
|
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
|
||||||
|
|
Loading…
Reference in New Issue