From 026fec44680a2e5eb5456972af9c54da03f86529 Mon Sep 17 00:00:00 2001 From: Jeremy Rimpo Date: Sat, 2 Dec 2023 15:52:25 -0600 Subject: Fix crash if no Nexus category is assigned --- src/categoriesdialog.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/categoriesdialog.cpp b/src/categoriesdialog.cpp index ff226286..f4515da5 100644 --- a/src/categoriesdialog.cpp +++ b/src/categoriesdialog.cpp @@ -148,8 +148,9 @@ void CategoriesDialog::commitChanges() for (int i = 0; i < ui->categoriesTable->rowCount(); ++i) { int index = ui->categoriesTable->verticalHeader()->logicalIndex(i); - QVariantList nexusData = - ui->categoriesTable->item(index, 3)->data(Qt::UserRole).toList(); + QVariantList nexusData; + if (ui->categoriesTable->item(index, 3) != nullptr) + nexusData = ui->categoriesTable->item(index, 3)->data(Qt::UserRole).toList(); std::vector nexusCats; for (auto nexusCat : nexusData) { nexusCats.push_back(CategoryFactory::NexusCategory( -- cgit v1.3.1 From 0315a88bd812fc92c82dc6a92e852a1ec547d006 Mon Sep 17 00:00:00 2001 From: Jeremy Rimpo Date: Sat, 2 Dec 2023 15:53:29 -0600 Subject: Rename sort button to match UI --- src/tutorials/tutorial_primer_main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/tutorials/tutorial_primer_main.js b/src/tutorials/tutorial_primer_main.js index b74c83fa..459cd2be 100644 --- a/src/tutorials/tutorial_primer_main.js +++ b/src/tutorials/tutorial_primer_main.js @@ -104,7 +104,7 @@ function setupTooptips() { switch (tutorialControl.getTabName("tabWidget")) { case "espTab": tooltipWidget("espList", qsTr("Plugins (esp/esm/esl files) of the mods in the current profile. They need to be checked to be loaded.")) - tooltipWidget("bossButton", qsTr("Automatically sort plugins using the bundled LOOT application.")) + tooltipWidget("sortButton", qsTr("Automatically sort plugins using the bundled LOOT application.")) tooltipWidget("restoreButton", qsTr("Restore a backup of your plugin list order.")) tooltipWidget("saveButton", qsTr("Save a backup of your plugin list order.")) tooltipWidget("activePluginsCounter", qsTr("Counter of your total active plugins. Hover to see a breakdown of plugin types.")) -- cgit v1.3.1