Skip to content

Commit

Permalink
Fix Dialog background (#1279)
Browse files Browse the repository at this point in the history
IB-8146

Signed-off-by: Raul Metsma <raul@metsma.ee>
  • Loading branch information
metsma authored Jul 18, 2024
1 parent 0fe8843 commit 4246198
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions client/Application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -743,8 +743,6 @@ QWidget* Application::mainWindow()
{
if(auto *win = qobject_cast<MainWindow*>(activeWindow()))
return win;
if(auto *win = qobject_cast<QDialog*>(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(),
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit 4246198

Please sign in to comment.