diff options
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r-- | qt-ui/mainwindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index bbee51b8b..fece00848 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -970,7 +970,7 @@ void MainWindow::addRecentFile(const QStringList &newFiles) } foreach (const QString &file, newFiles) { - int index = files.indexOf(file); + int index = files.indexOf(QDir::toNativeSeparators(file)); if (index >= 0) { files.removeAt(index); @@ -979,7 +979,7 @@ void MainWindow::addRecentFile(const QStringList &newFiles) foreach (const QString &file, newFiles) { if (QFile::exists(file)) { - files.prepend(file); + files.prepend(QDir::toNativeSeparators(file)); } } |