diff options
author | janrupf <werbung.janrupf@t-online.de> | 2019-06-17 16:13:52 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2019-06-21 22:38:26 +0200 |
commit | 306b98edacab8d1ad819d1b66fa54789b3e0bdea (patch) | |
tree | 54a78d6634f1ed2f3713bad31b8816bfc25ab75b /api | |
parent | ce12f1a734e08f1653aa482279a4dc6b6f3667eb (diff) | |
download | MultiMC-306b98edacab8d1ad819d1b66fa54789b3e0bdea.tar MultiMC-306b98edacab8d1ad819d1b66fa54789b3e0bdea.tar.gz MultiMC-306b98edacab8d1ad819d1b66fa54789b3e0bdea.tar.lz MultiMC-306b98edacab8d1ad819d1b66fa54789b3e0bdea.tar.xz MultiMC-306b98edacab8d1ad819d1b66fa54789b3e0bdea.zip |
GH-2592 Autoselect newly created instances
Diffstat (limited to 'api')
-rw-r--r-- | api/logic/InstanceList.cpp | 1 | ||||
-rw-r--r-- | api/logic/InstanceList.h | 1 |
2 files changed, 2 insertions, 0 deletions
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<QString> groups); public slots: |