diff --git a/launcher/InstanceList.cpp b/launcher/InstanceList.cpp index 82682b847..916aaaf51 100644 --- a/launcher/InstanceList.cpp +++ b/launcher/InstanceList.cpp @@ -211,6 +211,14 @@ QVariant InstanceList::data(const QModelIndex& index, int role) const { } break; } + + case InstanceIDRole: { + return inst->id(); + } + + case GroupRole: { + return getInstanceGroup(inst->id()); + } } return QVariant(); } diff --git a/launcher/InstanceList.h b/launcher/InstanceList.h index 0a4ebe53b..18a84a39d 100644 --- a/launcher/InstanceList.h +++ b/launcher/InstanceList.h @@ -88,8 +88,7 @@ public: { SortRole = Qt::UserRole + 1, GroupRole, - InstancePointerRole, ///< Return pointer to real instance - InstanceIDRole ///< Return id if the instance + InstanceIDRole }; /*! * \brief Error codes returned by functions in the InstanceList class.