summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2020-07-24 09:25:02 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2020-11-03 11:39:04 -0500
commit2cb5c21b8e15b02a09144ff6c1ab11e87879a420 (patch)
tree1831209831543f7092f71e84dd5438ed0653c2a1 /src/mainwindow.cpp
parentebbc8ed60c606b1b76fcea36eb2bd5db6373f7f0 (diff)
fixed settings doing weird stuff with multiple instances
sort games by name added intro and confirmation pages
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp26
1 files changed, 15 insertions, 11 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 65c1d65c..c2d83e36 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -5952,20 +5952,24 @@ void MainWindow::on_actionNotifications_triggered()
scheduleCheckForProblems();
}
+void openInstanceManager(PluginContainer& pc, QWidget* parent);
+
void MainWindow::on_actionChange_Game_triggered()
{
- if (m_OrganizerCore.settings().interface().showChangeGameConfirmation()) {
- const auto r = QMessageBox::question(
- this, tr("Are you sure?"), tr("This will restart MO, continue?"),
- QMessageBox::Yes | QMessageBox::Cancel);
+ openInstanceManager(m_PluginContainer, this);
- if (r != QMessageBox::Yes) {
- return;
- }
- }
-
- InstanceManager::instance().clearCurrentInstance();
- ExitModOrganizer(Exit::Restart);
+ //if (m_OrganizerCore.settings().interface().showChangeGameConfirmation()) {
+ // const auto r = QMessageBox::question(
+ // this, tr("Are you sure?"), tr("This will restart MO, continue?"),
+ // QMessageBox::Yes | QMessageBox::Cancel);
+ //
+ // if (r != QMessageBox::Yes) {
+ // return;
+ // }
+ //}
+ //
+ //InstanceManager::instance().clearCurrentInstance();
+ //ExitModOrganizer(Exit::Restart);
}
void MainWindow::setCategoryListVisible(bool visible)