diff options
| author | Tannin <devnull@localhost> | 2015-06-11 18:54:20 +0200 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2015-06-11 18:54:20 +0200 |
| commit | 53f0a2bc797075b5d199340e27cfdb3a23700fb4 (patch) | |
| tree | 6e57f437d3efbb67d455d5408d939efb907d1e34 /src | |
| parent | 793dfb1637322c60bcbf32fdc5a9c23bb7ed5ec4 (diff) | |
bugfix: opening a foreign mod info dialog caused the content to be "forgotten"
Diffstat (limited to 'src')
| -rw-r--r-- | src/mainwindow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 7c0804f8..df0b129d 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -2363,7 +2363,8 @@ void MainWindow::displayModInformation(ModInfo::Ptr modInfo, unsigned int index, m_OrganizerCore.modList()->modInfoChanged(modInfo);
}
- if (m_OrganizerCore.currentProfile()->modEnabled(index)) {
+ if (m_OrganizerCore.currentProfile()->modEnabled(index)
+ && !modInfo->hasFlag(ModInfo::FLAG_FOREIGN)) {
FilesOrigin& origin = m_OrganizerCore.directoryStructure()->getOriginByName(ToWString(modInfo->name()));
origin.enable(false);
|
