From 9eb1a303a7b750f69e1cf0cdf7518e09d6b62c2d Mon Sep 17 00:00:00 2001 From: Tannin Date: Wed, 8 Apr 2015 18:54:09 +0200 Subject: cosmetic changes and increased version number --- src/modlist.cpp | 5 ----- src/modlistsortproxy.cpp | 2 +- src/profile.cpp | 2 +- src/version.rc | 4 ++-- 4 files changed, 4 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/modlist.cpp b/src/modlist.cpp index 863e85fc..866445a6 100644 --- a/src/modlist.cpp +++ b/src/modlist.cpp @@ -434,7 +434,6 @@ bool ModList::renameMod(int index, const QString &newName) return true; } - bool ModList::setData(const QModelIndex &index, const QVariant &value, int role) { if (m_Profile == nullptr) return false; @@ -523,9 +522,6 @@ bool ModList::setData(const QModelIndex &index, const QVariant &value, int role) } - - - QVariant ModList::headerData(int section, Qt::Orientation orientation, int role) const { @@ -846,7 +842,6 @@ bool ModList::dropMimeData(const QMimeData *mimeData, Qt::DropAction action, int } else { return dropMod(mimeData, row, parent); } - } void ModList::removeRowForce(int row, const QModelIndex &parent) diff --git a/src/modlistsortproxy.cpp b/src/modlistsortproxy.cpp index d649996f..b40b4144 100644 --- a/src/modlistsortproxy.cpp +++ b/src/modlistsortproxy.cpp @@ -338,7 +338,7 @@ bool ModListSortProxy::filterAcceptsRow(int row, const QModelIndex &parent) cons qDebug("invalid index"); return false; } - if (idx.isValid() && sourceModel()->hasChildren(idx)) { + if (sourceModel()->hasChildren(idx)) { for (int i = 0; i < sourceModel()->rowCount(idx); ++i) { if (filterAcceptsRow(i, idx)) { return true; diff --git a/src/profile.cpp b/src/profile.cpp index c1e6e5fc..09ac0713 100644 --- a/src/profile.cpp +++ b/src/profile.cpp @@ -543,7 +543,7 @@ void Profile::mergeTweak(const QString &tweakName, const QString &tweakedIni) co for (std::vector::iterator keyIter = keys.begin(); keyIter != keys.end(); ++keyIter) { - //TODO this treats everything as strings but how could I differentiate the type? + //TODO this treats everything as strings but how could I differentiate the type? ::GetPrivateProfileStringW(iter->c_str(), keyIter->c_str(), nullptr, buffer.data(), bufferSize, ToWString(tweakName).c_str()); ::WritePrivateProfileStringW(iter->c_str(), keyIter->c_str(), diff --git a/src/version.rc b/src/version.rc index 272bdb1c..3f7eaadf 100644 --- a/src/version.rc +++ b/src/version.rc @@ -1,7 +1,7 @@ #include "Winver.h" -#define VER_FILEVERSION 1,3,3,0 -#define VER_FILEVERSION_STR "1,3,3,0\0" +#define VER_FILEVERSION 1,3,4,0 +#define VER_FILEVERSION_STR "1,3,4,0\0" VS_VERSION_INFO VERSIONINFO FILEVERSION VER_FILEVERSION -- cgit v1.3.1