From af6e1c3ab4f3687c88715dffff8b1bf2f38a15d6 Mon Sep 17 00:00:00 2001 From: Tannin Date: Wed, 11 Sep 2013 22:54:45 +0200 Subject: - when installing mods from outside the download directory the absolute path is now stored - added a context menu to the toolbar buttons so tool icons can be removed directly - initweaks modinfo tab is now always available and allows new ini tweaks to be created - fake esms are now treated as masters (as they should) - MO will now display a warning if not all masters of an esp are enabled. The tooltip gives a list of required masters - bugfix: path returned by getfullpathname was sometimes not correctly terminated - bugfix: path after reverse-rerouting was sometimes incorrect, missing a path separator - bugfix: change of current directory sometimes used a fake directory without need - bugfix: icons in shortcut menu were not alwayscorrectly updated --- src/installationmanager.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/installationmanager.cpp') 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 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(), -- cgit v1.3.1