diff --git a/src/FileDialog.cpp b/src/FileDialog.cpp index e055e029..b327b0d1 100644 --- a/src/FileDialog.cpp +++ b/src/FileDialog.cpp @@ -288,10 +288,10 @@ void showCopyingSessionFailedMessage(QWidget *parent) QDir getInstallDirectory(const QString &dirName) { const auto paths = std::initializer_list{ - QCoreApplication::applicationDirPath() + "/", + QCoreApplication::applicationDirPath(), #if !defined(NDEBUG) - QCoreApplication::applicationDirPath() + "/../", - QCoreApplication::applicationDirPath() + "/../../", + QCoreApplication::applicationDirPath() + "/..", + QCoreApplication::applicationDirPath() + "/../..", #endif #if defined(__linux__) qEnvironmentVariable("APPDIR") + "/usr/share/" + @@ -299,7 +299,7 @@ QDir getInstallDirectory(const QString &dirName) #endif }; for (const auto &path : paths) { - auto dir = QDir(path + dirName); + auto dir = QDir(path + "/" + dirName); if (dir.exists()) return dir; }