aboutsummaryrefslogtreecommitdiff
path: root/launcher/InstanceProxyModel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'launcher/InstanceProxyModel.cpp')
-rw-r--r--launcher/InstanceProxyModel.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/launcher/InstanceProxyModel.cpp b/launcher/InstanceProxyModel.cpp
index 5317f60c..0311c239 100644
--- a/launcher/InstanceProxyModel.cpp
+++ b/launcher/InstanceProxyModel.cpp
@@ -1,5 +1,5 @@
#include "InstanceProxyModel.h"
-#include "MultiMC.h"
+#include "Launcher.h"
#include <BaseInstance.h>
#include <icons/IconList.h>
@@ -12,7 +12,7 @@ QVariant InstanceProxyModel::data(const QModelIndex & index, int role) const
QVariant data = QSortFilterProxyModel::data(index, role);
if(role == Qt::DecorationRole)
{
- return QVariant(MMC->icons()->getIcon(data.toString()));
+ return QVariant(LAUNCHER->icons()->getIcon(data.toString()));
}
return data;
}
@@ -22,7 +22,7 @@ bool InstanceProxyModel::subSortLessThan(const QModelIndex &left,
{
BaseInstance *pdataLeft = static_cast<BaseInstance *>(left.internalPointer());
BaseInstance *pdataRight = static_cast<BaseInstance *>(right.internalPointer());
- QString sortMode = MMC->settings()->get("InstSortMode").toString();
+ QString sortMode = LAUNCHER->settings()->get("InstSortMode").toString();
if (sortMode == "LastLaunch")
{
return pdataLeft->lastLaunch() > pdataRight->lastLaunch();