From 59ac6b974bd9fa9b9ee63433b881fdb95fb510d4 Mon Sep 17 00:00:00 2001 From: Raul Metsma Date: Wed, 17 Jul 2024 11:04:14 +0300 Subject: [PATCH] Fix Dialog background IB-8146 Signed-off-by: Raul Metsma --- client/Application.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/client/Application.cpp b/client/Application.cpp index 38a0924a7..d06a75099 100644 --- a/client/Application.cpp +++ b/client/Application.cpp @@ -743,8 +743,6 @@ QWidget* Application::mainWindow() { if(auto *win = qobject_cast(activeWindow())) return win; - if(auto *win = qobject_cast(activeWindow())) - return win; auto list = topLevelWidgets(); // Prefer main window; on Mac also the menu is top level window if(auto i = std::find_if(list.cbegin(), list.cend(), @@ -939,11 +937,11 @@ void Application::updateTSLCache(const QDateTime &tslTime) for(const QString &file: tsllist) { if(QFile tl(cache + "/" + file); - Application::readTSLVersion(":/TSL/" + file) > Application::readTSLVersion(tl.fileName())) + readTSLVersion(":/TSL/" + file) > readTSLVersion(tl.fileName())) { const QStringList cleanup = QDir(cache, file + QStringLiteral("*")).entryList(); for(const QString &rm: cleanup) - QFile::remove(cache + "/" + rm); + QFile::remove(cache + '/' + rm); QFile::copy(":/TSL/" + file, tl.fileName()); tl.setPermissions(QFile::Permissions(0x6444)); if(tslTime.isValid() && tl.open(QFile::Append))