Skip to content

Commit 828c9c8

Browse files
authored
Merge pull request #1921 from ModOrganizer2/rc_fixes
A few fixes for RC 1
2 parents 1b4ed39 + 773e3ac commit 828c9c8

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
lines changed

src/modlist.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ QVariant ModList::data(const QModelIndex& modelIndex, int role) const
208208
if (modInfo->hasAutomaticPriority()) {
209209
return QVariant(); // hide priority for mods where it's fixed
210210
} else {
211-
return m_Profile->getModPriority(modIndex);
211+
return QString::number(m_Profile->getModPriority(modIndex));
212212
}
213213
} else if (column == COL_MODID) {
214214
int modID = modInfo->nexusId();

src/modlistcontextmenu.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,9 @@ void ModListContextMenu::addRegularActions(ModInfo::Ptr mod)
561561
}
562562
}
563563

564-
if (mod->nexusId() > 0 && !mod->installationFile().isEmpty()) {
564+
if (mod->nexusId() > 0 &&
565+
(mod->getNexusCategory() > 0 || !mod->installationFile().isEmpty()) &&
566+
!mod->isSeparator()) {
565567
addAction(tr("Remap Category (From Nexus)"), [=]() {
566568
m_actions.remapCategory(m_selected);
567569
});

src/modlistviewactions.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,9 @@ void ModListViewActions::assignCategories() const
279279
}
280280
for (auto mod : m_core.modList()->allMods()) {
281281
ModInfo::Ptr modInfo = ModInfo::getByName(mod);
282-
int nexusCategory = modInfo->getNexusCategory();
282+
if (modInfo->isSeparator())
283+
continue;
284+
int nexusCategory = modInfo->getNexusCategory();
283285
if (!nexusCategory) {
284286
QSettings downloadMeta(m_core.downloadsPath() + "/" +
285287
modInfo->installationFile() + ".meta",
@@ -1125,6 +1127,8 @@ void ModListViewActions::remapCategory(const QModelIndexList& indices) const
11251127
{
11261128
for (auto& idx : indices) {
11271129
ModInfo::Ptr modInfo = ModInfo::getByIndex(idx.data(ModList::IndexRole).toInt());
1130+
if (modInfo->isSeparator())
1131+
continue;
11281132

11291133
int categoryID = modInfo->getNexusCategory();
11301134
if (!categoryID) {

src/pluginlist.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1185,7 +1185,7 @@ QVariant PluginList::displayData(const QModelIndex& modelIndex) const
11851185
return m_ESPs[index].name;
11861186

11871187
case COL_PRIORITY:
1188-
return m_ESPs[index].priority;
1188+
return QString::number(m_ESPs[index].priority);
11891189

11901190
case COL_MODINDEX:
11911191
return m_ESPs[index].index;

src/version.rc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Otherwise, if letters are used in VER_FILEVERSION_STR, uses the full MOBase::VersionInfo parser
55
// Otherwise, uses the numbers from VER_FILEVERSION and sets the release type as pre-alpha
66
#define VER_FILEVERSION 2,5,0
7-
#define VER_FILEVERSION_STR "2.5.0-rc1\0"
7+
#define VER_FILEVERSION_STR "2.5.0rc2\0"
88

99
VS_VERSION_INFO VERSIONINFO
1010
FILEVERSION VER_FILEVERSION

0 commit comments

Comments
 (0)