File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff 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))
You can’t perform that action at this time.
0 commit comments