diff options
| author | Mikaƫl Capelle <capelle.mikael@gmail.com> | 2023-12-03 09:04:41 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-03 09:04:41 +0100 |
| commit | 783c05478f45fdbc08fcc1243a29ace2c5ec21fa (patch) | |
| tree | 1b01705fd94464992fcd04546f1eb5793a0fe8ff /src | |
| parent | 04eff9750f0ebce85c64046cbf7d0198a4746247 (diff) | |
| parent | 0315a88bd812fc92c82dc6a92e852a1ec547d006 (diff) | |
Merge pull request #1937 from ModOrganizer2/null-category-fix
Null category fix
Diffstat (limited to 'src')
| -rw-r--r-- | src/categoriesdialog.cpp | 5 | ||||
| -rw-r--r-- | src/tutorials/tutorial_primer_main.js | 2 |
2 files changed, 4 insertions, 3 deletions
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<CategoryFactory::NexusCategory> nexusCats; for (auto nexusCat : nexusData) { nexusCats.push_back(CategoryFactory::NexusCategory( 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."))
|
