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

Platform::IsWayland could be used on any platform now

This commit is contained in:
Ilya Fedin
2020-06-22 05:15:19 +04:00
committed by John Preston
parent 9a65481e9d
commit 68fde210c6
3 changed files with 4 additions and 13 deletions

View File

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