1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 09:37:56 +00:00

fix: Qt 6.5 deprecation warning (#5552)

This commit is contained in:
Dmitry Antipov 2023-06-20 00:22:54 +03:00 committed by GitHub
parent 23a52fa1c5
commit 040bc8a1ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1110,7 +1110,11 @@ void MainWindow::toggleWindows(bool do_show)
} }
raise(); raise();
#if QT_VERSION >= QT_VERSION_CHECK(6, 4, 0)
this->activateWindow();
#else
QApplication::setActiveWindow(this); QApplication::setActiveWindow(this);
#endif
} }
} }