From e0de4dbc5e15a3ac66fc92b19cc9e2ff3212524a Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Sat, 7 Nov 2020 06:58:10 +0400 Subject: [PATCH] Replace new #ifdef Q_OS_LINUX in main_window.cpp added a month ago --- Telegram/SourceFiles/window/main_window.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/window/main_window.cpp b/Telegram/SourceFiles/window/main_window.cpp index cef351733d..cf0c168b19 100644 --- a/Telegram/SourceFiles/window/main_window.cpp +++ b/Telegram/SourceFiles/window/main_window.cpp @@ -365,7 +365,7 @@ void MainWindow::refreshTitleWidget() { _titleShadow.destroy(); } -#ifdef Q_OS_LINUX +#if defined Q_OS_UNIX && !defined Q_OS_MAC // setWindowFlag calls setParent(parentWidget(), newFlags), which // always calls hide() explicitly, we have to show() the window back. const auto hidden = isHidden(); @@ -378,7 +378,7 @@ void MainWindow::refreshTitleWidget() { this, [=] { show(); }); } -#endif // Q_OS_LINUX +#endif // Q_OS_UNIX && !Q_OS_MAC } void MainWindow::updateMinimumSize() {