summaryrefslogtreecommitdiff
path: root/src/installationmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/installationmanager.cpp')
-rw-r--r--src/installationmanager.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/installationmanager.cpp b/src/installationmanager.cpp
index af2e6852..588dbaa4 100644
--- a/src/installationmanager.cpp
+++ b/src/installationmanager.cpp
@@ -664,8 +664,11 @@ bool InstallationManager::install(const QString &fileName, GuessedValue<QString>
modName.update(guessedModName, GUESS_GOOD);
}
- qDebug("using mod name \"%s\" (id %d)", modName->toUtf8().constData(), modID);
- m_CurrentFile = fileInfo.fileName();
+ m_CurrentFile = fileInfo.absoluteFilePath();
+ if (fileInfo.dir() == QDir(ToQString(GameInfo::instance().getDownloadDir()))) {
+ m_CurrentFile = fileInfo.fileName();
+ }
+ qDebug("using mod name \"%s\" (id %d) -> %s", modName->toUtf8().constData(), modID, qPrintable(m_CurrentFile));
// open the archive and construct the directory tree the installers work on
bool archiveOpen = m_CurrentArchive->open(ToWString(QDir::toNativeSeparators(fileName)).c_str(),