mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
macOS: prevent the Quit main menu item from interferring with modal rules
This commit is contained in:
parent
d455f06f51
commit
6de2d8f5c4
1 changed files with 3 additions and 0 deletions
|
|
@ -1468,6 +1468,9 @@ namespace Gtk {
|
||||||
- (NSApplicationTerminateReply) applicationShouldTerminate:(NSApplication *) app
|
- (NSApplicationTerminateReply) applicationShouldTerminate:(NSApplication *) app
|
||||||
{
|
{
|
||||||
UNUSED_PARAMETER(app);
|
UNUSED_PARAMETER(app);
|
||||||
|
if (_modal_state) {
|
||||||
|
return NSTerminateCancel;
|
||||||
|
}
|
||||||
Gtkmm2ext::Application::instance()->ShouldQuit ();
|
Gtkmm2ext::Application::instance()->ShouldQuit ();
|
||||||
return NSTerminateCancel;
|
return NSTerminateCancel;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue