summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2015-04-08 18:54:09 +0200
committerTannin <devnull@localhost>2015-04-08 18:54:09 +0200
commit9eb1a303a7b750f69e1cf0cdf7518e09d6b62c2d (patch)
treeb48dd12c100614aca3b942b79ea5eb00b394af9a /src
parenta44c4bbdb2b99759b4d36687153465df51cc9cf9 (diff)
cosmetic changes and increased version number
Diffstat (limited to 'src')
-rw-r--r--src/modlist.cpp5
-rw-r--r--src/modlistsortproxy.cpp2
-rw-r--r--src/profile.cpp2
-rw-r--r--src/version.rc4
4 files changed, 4 insertions, 9 deletions
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<std::wstring>::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