# # # patch "src/GuitoneStandalone.cpp" # from [a7187318bd91210e6bf854ba2ab1b31cc5d96e3c] # to [9670cb15b775d6ccf316a9e7b40ce7dc9b6bfc9d] # ============================================================ --- src/GuitoneStandalone.cpp a7187318bd91210e6bf854ba2ab1b31cc5d96e3c +++ src/GuitoneStandalone.cpp 9670cb15b775d6ccf316a9e7b40ce7dc9b6bfc9d @@ -166,6 +166,7 @@ void GuitoneStandalone::loadFromPath(con void GuitoneStandalone::loadFromPath(const QString & path) { QMutexLocker locker(&lock); + QString canonicalPath(path); try { @@ -173,6 +174,8 @@ void GuitoneStandalone::loadFromPath(con if (!fileInfo.exists()) throw GuitoneException(tr("Non-existant path '%1'").arg(path)); + canonicalPath = fileInfo.canonicalFilePath(); + MainWindow * wnd; if (fileInfo.isDir()) @@ -186,7 +189,7 @@ void GuitoneStandalone::loadFromPath(con try { - wnd->load(path); + wnd->load(canonicalPath); } catch (GuitoneException e) { @@ -204,8 +207,8 @@ void GuitoneStandalone::loadFromPath(con catch (GuitoneException e) { - Settings::removeItemFromList("RecentWorkspaceList", path); - Settings::removeItemFromList("RecentDatabaseList", path); + Settings::removeItemFromList("RecentWorkspaceList", canonicalPath); + Settings::removeItemFromList("RecentDatabaseList", canonicalPath); emit updateRecentLists(); throw e; }