diff --git a/Telegram/SourceFiles/application.cpp b/Telegram/SourceFiles/application.cpp index 150e41b25d..ad0a3cae5a 100644 --- a/Telegram/SourceFiles/application.cpp +++ b/Telegram/SourceFiles/application.cpp @@ -322,7 +322,7 @@ void Application::startApplication() { void Application::closeApplication() { if (App::launchState() != App::QuitProcessed); App::setLaunchState(App::QuitProcessed); - App::quit(); + delete AppObject; AppObject = 0; diff --git a/Telegram/SourceFiles/window.cpp b/Telegram/SourceFiles/window.cpp index ba6f86229d..197d42174d 100644 --- a/Telegram/SourceFiles/window.cpp +++ b/Telegram/SourceFiles/window.cpp @@ -1037,9 +1037,11 @@ bool Window::eventFilter(QObject *obj, QEvent *e) { break; case QEvent::ShortcutOverride: // handle shortcuts ourselves + DEBUG_LOG(("Shortcut override declined: %1").arg(static_cast(e)->key())); return true; case QEvent::Shortcut: + DEBUG_LOG(("Shortcut event catched: %1").arg(static_cast(e)->key().toString())); if (Shortcuts::launch(static_cast(e)->shortcutId())) { return true; }