diff options
| author | Tannin <devnull@localhost> | 2013-08-31 17:11:17 +0200 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2013-08-31 17:11:17 +0200 |
| commit | 49e1dd23b699b499d9b715ef74cb7ca5b0189584 (patch) | |
| tree | 2ab470822b369a38c8d2dad1d52f584107e14137 /src/mainwindow.cpp | |
| parent | 9c31cfa915f71adee8579aa97c12b64903ec9446 (diff) | |
- mod list can now be sorted by install time
- the sorting of download archives wasn't actually by index instead of file time
- bugfix: some of the plugins crashed if they failed to create a mod
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 8d5429b4..93efb137 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -104,6 +104,7 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. #include "modeltest.h" #endif // TEST_MODELS +#pragma warning( disable : 4428 ) using namespace MOBase; using namespace MOShared; @@ -3017,6 +3018,9 @@ void MainWindow::createModFromOverwrite() } IModInterface *newMod = createMod(name); + if (newMod == NULL) { + return; + } ModInfo::Ptr overwriteInfo = ModInfo::getByIndex(m_ContextRow); |
