summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2013-09-23 22:39:58 +0200
committerTannin <devnull@localhost>2013-09-23 22:39:58 +0200
commitf4528c7aaab81d904977666a475899ab153137f9 (patch)
tree6c08977ed3da94820ebe5648fdf1bcd85467fe51 /src/mainwindow.cpp
parent4f0a6e8b886cc3b1d81ded5b40d0afbee1541982 (diff)
- bugfix: esp parsing could crash for broken/unrecognized esps
- bugfix: esp parser didn't handle oblivion esps correctly
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index fdd16049..601ec5c5 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -2004,6 +2004,10 @@ void MainWindow::on_tabWidget_currentChanged(int index)
void MainWindow::installMod(const QString &fileName)
{
+ if (m_CurrentProfile == NULL) {
+ return;
+ }
+
bool hasIniTweaks = false;
GuessedValue<QString> modName;
m_CurrentProfile->writeModlistNow();