2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Use Q_OS_UNIX instead of Q_OS_LINUX since linux-specific code can be used also on *BSD/Haiku

This commit is contained in:
Ilya Fedin
2020-06-13 05:03:23 +04:00
committed by John Preston
parent 56de3194ef
commit dbad9fa73a
27 changed files with 87 additions and 85 deletions

View File

@@ -773,11 +773,11 @@ void Application::notifyFileDialogShown(bool shown) {
}
QWidget *Application::getModalParent() {
#ifdef Q_OS_LINUX
#if defined Q_OS_UNIX && !defined Q_OS_MAC
return Platform::IsWayland()
? App::wnd()
: nullptr;
#endif // Q_OS_LINUX
#endif // Q_OS_UNIX && !Q_OS_MAC
return nullptr;
}