2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 08:55:59 +00:00

Use qualified names for App::main and App::wnd.

This commit is contained in:
John Preston
2018-12-04 16:10:00 +04:00
parent 2eb3041c1f
commit c259921269
2 changed files with 9 additions and 9 deletions

View File

@@ -1529,12 +1529,12 @@ namespace App {
}
setLaunchState(QuitRequested);
if (auto window = wnd()) {
if (auto window = App::wnd()) {
if (!Sandbox::isSavingSession()) {
window->hide();
}
}
if (auto mainwidget = main()) {
if (auto mainwidget = App::main()) {
mainwidget->saveDraftToCloud();
}
Messenger::QuitAttempt();