summaryrefslogtreecommitdiffstats
path: root/api/logic/BaseInstance.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2018-07-23 00:49:26 +0200
committerPetr Mrázek <peterix@gmail.com>2018-07-28 22:12:57 +0200
commit7b439c85c0bf3583ac8970e7ab9e8db3bd65c968 (patch)
tree0907bda540ed3df50ad15ff3265dc0c819146227 /api/logic/BaseInstance.cpp
parent12f2716f31e09d18d47ffdbb6c06dfb71c6ec8fb (diff)
downloadMultiMC-7b439c85c0bf3583ac8970e7ab9e8db3bd65c968.tar
MultiMC-7b439c85c0bf3583ac8970e7ab9e8db3bd65c968.tar.gz
MultiMC-7b439c85c0bf3583ac8970e7ab9e8db3bd65c968.tar.lz
MultiMC-7b439c85c0bf3583ac8970e7ab9e8db3bd65c968.tar.xz
MultiMC-7b439c85c0bf3583ac8970e7ab9e8db3bd65c968.zip
SCRATCH things and stuff, related to grou saving
Diffstat (limited to 'api/logic/BaseInstance.cpp')
-rw-r--r--api/logic/BaseInstance.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/api/logic/BaseInstance.cpp b/api/logic/BaseInstance.cpp
index c81b70c6..f07b2bd0 100644
--- a/api/logic/BaseInstance.cpp
+++ b/api/logic/BaseInstance.cpp
@@ -99,16 +99,11 @@ void BaseInstance::iconUpdated(QString key)
void BaseInstance::invalidate()
{
changeStatus(Status::Gone);
+ m_group = QString();
+ emit groupChanged();
qDebug() << "Instance" << id() << "has been invalidated.";
}
-void BaseInstance::nuke()
-{
- changeStatus(Status::Gone);
- qDebug() << "Instance" << id() << "has been deleted by MultiMC.";
- FS::deletePath(instanceRoot());
-}
-
void BaseInstance::changeStatus(BaseInstance::Status newStatus)
{
Status status = currentStatus();