summaryrefslogtreecommitdiff
path: root/src/modlist.cpp
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2013-12-19 19:40:59 +0100
committerTannin <devnull@localhost>2013-12-19 19:40:59 +0100
commit35c9fe3e98cd4a81b114b0d9acb24727465d94b3 (patch)
tree33a32eefc8c1d1620f3282b33c10fa165d149d15 /src/modlist.cpp
parent82f7b09b40ffdbcee1ef275b499b6b8bcf0001bf (diff)
- bugfix: archive.dll could cause a crash, attempting to close an archive that failed to open
- bugfix: upon changing categories the mappings of deleted categories wasn't cleaned up which could cause an error message - bugfix: the number of esps/esms that can be loaded is actually 255 not 256 since the save game counts too - bugfix: "visit on nexus" from the modinfo dialog also lead to the wrong url
Diffstat (limited to 'src/modlist.cpp')
-rw-r--r--src/modlist.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modlist.cpp b/src/modlist.cpp
index b35d6ad2..7f09654d 100644
--- a/src/modlist.cpp
+++ b/src/modlist.cpp
@@ -171,7 +171,8 @@ QVariant ModList::data(const QModelIndex &modelIndex, int role) const
CategoryFactory &categoryFactory = CategoryFactory::instance();
if (categoryFactory.categoryExists(category)) {
try {
- return categoryFactory.getCategoryName(categoryFactory.getCategoryIndex(category));
+ int categoryIdx = categoryFactory.getCategoryIndex(category);
+ return categoryFactory.getCategoryName(categoryIdx);
} catch (const std::exception &e) {
qCritical("failed to retrieve category name: %s", e.what());
return QString();