summaryrefslogtreecommitdiff
path: root/src/installationmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/installationmanager.cpp')
-rw-r--r--src/installationmanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/installationmanager.cpp b/src/installationmanager.cpp
index a8571ec9..224602a8 100644
--- a/src/installationmanager.cpp
+++ b/src/installationmanager.cpp
@@ -647,7 +647,7 @@ bool InstallationManager::install(const QString &fileName, GuessedValue<QString>
}
m_CurrentFile = fileInfo.absoluteFilePath();
- if (fileInfo.dir() == QDir(ToQString(GameInfo::instance().getDownloadDir()))) {
+ if (fileInfo.dir() == QDir(m_DownloadsDirectory)) {
m_CurrentFile = fileInfo.fileName();
}
qDebug("using mod name \"%s\" (id %d) -> %s", modName->toUtf8().constData(), modID, qPrintable(m_CurrentFile));