summaryrefslogtreecommitdiff
path: root/src/instancemanagerdialog.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2020-11-04 20:57:50 -0500
committerisanae <14251494+isanae@users.noreply.github.com>2020-11-04 20:57:50 -0500
commite6a87a17987de5d8e462634777df31e2cae5c1a6 (patch)
tree1d5fa9752f6949b62aa6a8148b07cea7b02d964c /src/instancemanagerdialog.cpp
parentf7b097e6ba3160b424204c719b615954601f76fe (diff)
added IPlugin::registered()
removed useless dummy interfaces because init() isn't called anymore python plugins currently broken because init() isn't called on them fixed create instance dialog being shown on startup even if portable instance existed display a message when the last instance can't be found fixed instance manager dialog failing to open the portable instance
Diffstat (limited to 'src/instancemanagerdialog.cpp')
-rw-r--r--src/instancemanagerdialog.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/instancemanagerdialog.cpp b/src/instancemanagerdialog.cpp
index 231835ba..282329a5 100644
--- a/src/instancemanagerdialog.cpp
+++ b/src/instancemanagerdialog.cpp
@@ -462,7 +462,11 @@ void InstanceManagerDialog::openSelectedInstance()
return;
}
- InstanceManager::instance().setCurrentInstance(m_instances[i]->name());
+ if (m_instances[i]->isPortable()) {
+ InstanceManager::instance().setCurrentInstance("");
+ } else {
+ InstanceManager::instance().setCurrentInstance(m_instances[i]->name());
+ }
if (m_restartOnSelect) {
ExitModOrganizer(Exit::Restart);