From f4528c7aaab81d904977666a475899ab153137f9 Mon Sep 17 00:00:00 2001 From: Tannin Date: Mon, 23 Sep 2013 22:39:58 +0200 Subject: - bugfix: esp parsing could crash for broken/unrecognized esps - bugfix: esp parser didn't handle oblivion esps correctly --- src/mainwindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mainwindow.cpp') 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 modName; m_CurrentProfile->writeModlistNow(); -- cgit v1.3.1