diff options
author | Lukáš Lalinský <lalinsky@gmail.com> | 2009-08-26 13:20:11 +0200 |
---|---|---|
committer | Lukáš Lalinský <lalinsky@gmail.com> | 2009-08-26 13:20:11 +0200 |
commit | 72200c7507e71799d8a79a341e3d91c35c0dbc82 (patch) | |
tree | 3fb79c0353210ed708fb1894b0e690d17c18f4f7 /src | |
parent | 7bdeaf5da2e2bdf5affbed5ca2a534787a3a9717 (diff) | |
download | dbmodel-72200c7507e71799d8a79a341e3d91c35c0dbc82.tar.xz |
Use canonicalFilePath rather than absoluteFilePath
Diffstat (limited to 'src')
-rw-r--r-- | src/mainwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index b7ebbe3..4b7b500 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -707,7 +707,7 @@ MainWindow::addRecentFile(const QString &fileName) { QSettings settings; QStringList files = settings.value("recentFileList").toStringList(); - QString absFileName = QFileInfo(fileName).absoluteFilePath(); + QString absFileName = QFileInfo(fileName).canonicalFilePath(); files.removeAll(absFileName); files.prepend(absFileName); while (files.size() > MaxRecentFiles) |