diff options
| author | Tannin <devnull@localhost> | 2013-09-11 22:54:45 +0200 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2013-09-11 22:54:45 +0200 |
| commit | af6e1c3ab4f3687c88715dffff8b1bf2f38a15d6 (patch) | |
| tree | 414f43c931e2e040344e87d2f6317196c1cea108 /src/installationmanager.cpp | |
| parent | 50325c8fc23fdeed6e1acb90917e8e2889a1140f (diff) | |
- 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
Diffstat (limited to 'src/installationmanager.cpp')
| -rw-r--r-- | src/installationmanager.cpp | 7 |
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(), |
