2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-03 07:56:03 +00:00

Xcode 8 supported. Fixed quit by Cmd+Q in case of macOS fullscreen window.

This commit is contained in:
John Preston
2016-09-15 13:50:43 +03:00
parent 96202f775c
commit 708bf688ea
5 changed files with 29 additions and 17 deletions

View File

@@ -126,6 +126,13 @@ Application::Application(int &argc, char **argv) : QApplication(argc, argv) {
}
}
bool Application::event(QEvent *e) {
if (e->type() == QEvent::Close) {
App::quit();
}
return QApplication::event(e);
}
void Application::socketConnected() {
LOG(("Socket connected, this is not the first application instance, sending show command..."));
_secondInstance = true;