Browse Source

Fix crash on attempt to enable 0 mods, for example after update

Ivan Savenko 11 months ago
parent
commit
00513c8720
1 changed files with 2 additions and 1 deletions
  1. 2 1
      launcher/modManager/cmodlistview_moc.cpp

+ 2 - 1
launcher/modManager/cmodlistview_moc.cpp

@@ -932,7 +932,8 @@ void CModListView::installMods(QStringList archives)
 		manager->installMod(modNames[i], archives[i]);
 	}
 
-	manager->enableMods(modsToEnable);
+	if (!modsToEnable.empty())
+		manager->enableMods(modsToEnable);
 
 	checkManagerErrors();