From 306b98edacab8d1ad819d1b66fa54789b3e0bdea Mon Sep 17 00:00:00 2001 From: janrupf Date: Mon, 17 Jun 2019 16:13:52 +0200 Subject: GH-2592 Autoselect newly created instances --- api/logic/InstanceList.cpp | 1 + api/logic/InstanceList.h | 1 + 2 files changed, 2 insertions(+) (limited to 'api') diff --git a/api/logic/InstanceList.cpp b/api/logic/InstanceList.cpp index afbebc25..dc367e30 100644 --- a/api/logic/InstanceList.cpp +++ b/api/logic/InstanceList.cpp @@ -819,6 +819,7 @@ bool InstanceList::commitStagedInstance(const QString& path, const QString& inst instanceSet.insert(instID); m_groups.insert(groupName); emit instancesChanged(); + emit instanceAdded(instID); } saveGroupList(); return true; diff --git a/api/logic/InstanceList.h b/api/logic/InstanceList.h index 50b44738..5f92a924 100644 --- a/api/logic/InstanceList.h +++ b/api/logic/InstanceList.h @@ -129,6 +129,7 @@ public: signals: void dataIsInvalid(); void instancesChanged(); + void instanceAdded(QString instanceId); void groupsChanged(QSet groups); public slots: -- cgit v1.2.3