summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2017-04-01 18:38:04 +0200
committerPetr Mrázek <peterix@gmail.com>2017-04-07 00:20:02 +0200
commitf565798650b453ed8c94422096d9b37ba81ebf3e (patch)
treef187cc1c17d8665c499cb65b6d84726dddc849a6 /application
parente0596d3c86806d952a9811f306f497f84430ae3c (diff)
downloadMultiMC-f565798650b453ed8c94422096d9b37ba81ebf3e.tar
MultiMC-f565798650b453ed8c94422096d9b37ba81ebf3e.tar.gz
MultiMC-f565798650b453ed8c94422096d9b37ba81ebf3e.tar.lz
MultiMC-f565798650b453ed8c94422096d9b37ba81ebf3e.tar.xz
MultiMC-f565798650b453ed8c94422096d9b37ba81ebf3e.zip
NOISSUE remove unused version range filtering
Diffstat (limited to 'application')
-rw-r--r--application/VersionProxyModel.cpp12
-rw-r--r--application/widgets/VersionSelectWidget.cpp2
2 files changed, 2 insertions, 12 deletions
diff --git a/application/VersionProxyModel.cpp b/application/VersionProxyModel.cpp
index 00390b36..96bdc9ab 100644
--- a/application/VersionProxyModel.cpp
+++ b/application/VersionProxyModel.cpp
@@ -28,17 +28,7 @@ public:
{
case BaseVersionList::ParentVersionRole:
case BaseVersionList::VersionIdRole:
- {
- auto versionString = data.toString();
- if(it.value().exact)
- {
- return versionString == it.value().string;
- }
- else
- {
- return versionIsInInterval(versionString, it.value().string);
- }
- }
+ // TODO: work with metadata here. Previous implementation based on the Version class is not sufficient
default:
{
auto match = data.toString();
diff --git a/application/widgets/VersionSelectWidget.cpp b/application/widgets/VersionSelectWidget.cpp
index a4eb428b..1696d9d1 100644
--- a/application/widgets/VersionSelectWidget.cpp
+++ b/application/widgets/VersionSelectWidget.cpp
@@ -168,4 +168,4 @@ void VersionSelectWidget::setExactFilter(BaseVersionList::ModelRoles role, QStri
void VersionSelectWidget::setFuzzyFilter(BaseVersionList::ModelRoles role, QString filter)
{
m_proxyModel->setFilter(role, filter, false);
-} \ No newline at end of file
+}