diff options
Diffstat (limited to 'src/modlist.cpp')
| -rw-r--r-- | src/modlist.cpp | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/modlist.cpp b/src/modlist.cpp index 1bd7b0f0..6d55764a 100644 --- a/src/modlist.cpp +++ b/src/modlist.cpp @@ -78,7 +78,6 @@ void ModList::setProfile(Profile *profile) {
m_Profile = profile;
}
-
int ModList::rowCount(const QModelIndex &parent) const
{
if (!parent.isValid()) {
@@ -484,7 +483,7 @@ bool ModList::setData(const QModelIndex &index, const QVariant &value, int role) } break;
case COL_VERSION: {
VersionInfo::VersionScheme scheme = info->getVersion().scheme();
- VersionInfo version(value.toString(), scheme);
+ VersionInfo version(value.toString(), scheme, true);
if (version.isValid()) {
info->setVersion(version);
result = true;
@@ -518,17 +517,7 @@ bool ModList::setData(const QModelIndex &index, const QVariant &value, int role) }
-ModList::EColumn ModList::getEnabledColumn(int index) const
-{
- for (int i = 0; i <= COL_LASTCOLUMN; ++i) {
- if (index == 0) {
- return static_cast<EColumn>(i);
- } else {
- --index;
- }
- }
- return ModList::COL_NAME;
-}
+
QVariant ModList::headerData(int section, Qt::Orientation orientation,
|
