Skip to content

Commit 4246198

Browse files
authored
Fix Dialog background (#1279)
IB-8146 Signed-off-by: Raul Metsma <[email protected]>
1 parent 0fe8843 commit 4246198

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

client/Application.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -743,8 +743,6 @@ QWidget* Application::mainWindow()
743743
{
744744
if(auto *win = qobject_cast<MainWindow*>(activeWindow()))
745745
return win;
746-
if(auto *win = qobject_cast<QDialog*>(activeWindow()))
747-
return win;
748746
auto list = topLevelWidgets();
749747
// Prefer main window; on Mac also the menu is top level window
750748
if(auto i = std::find_if(list.cbegin(), list.cend(),
@@ -939,11 +937,11 @@ void Application::updateTSLCache(const QDateTime &tslTime)
939937
for(const QString &file: tsllist)
940938
{
941939
if(QFile tl(cache + "/" + file);
942-
Application::readTSLVersion(":/TSL/" + file) > Application::readTSLVersion(tl.fileName()))
940+
readTSLVersion(":/TSL/" + file) > readTSLVersion(tl.fileName()))
943941
{
944942
const QStringList cleanup = QDir(cache, file + QStringLiteral("*")).entryList();
945943
for(const QString &rm: cleanup)
946-
QFile::remove(cache + "/" + rm);
944+
QFile::remove(cache + '/' + rm);
947945
QFile::copy(":/TSL/" + file, tl.fileName());
948946
tl.setPermissions(QFile::Permissions(0x6444));
949947
if(tslTime.isValid() && tl.open(QFile::Append))

0 commit comments

Comments
 (0)