summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorSilarn <jrim@rimpo.org>2019-02-11 20:30:45 -0600
committerSilarn <jrim@rimpo.org>2019-02-18 21:31:21 -0600
commitf7d1ce1fae80e42141198547d6c54689e085327f (patch)
treef9b111e3fe7f09ad9e5139401dec19c6cc1bea76 /src/mainwindow.cpp
parent2b9d2f32fbbc576c9367a24c0347e5870ff20117 (diff)
Small updates, cleanup, update code, cache settings, tooltips
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp22
1 files changed, 17 insertions, 5 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 7592bd1e..1ecb6417 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -749,11 +749,11 @@ void MainWindow::createEndorseWidget()
buttonMenu->clear();
QAction *endorseAction = new QAction(tr("Endorse"), buttonMenu);
- connect(endorseAction, SIGNAL(triggered()), this, SLOT(on_actionEndorseMO_triggered()));
+ connect(endorseAction, SIGNAL(triggered()), this, SLOT(actionEndorseMO()));
buttonMenu->addAction(endorseAction);
QAction *wontEndorseAction = new QAction(tr("Won't Endorse"), buttonMenu);
- connect(wontEndorseAction, SIGNAL(triggered()), this, SLOT(on_actionWontEndorseMO_triggered()));
+ connect(wontEndorseAction, SIGNAL(triggered()), this, SLOT(actionWontEndorseMO()));
buttonMenu->addAction(wontEndorseAction);
}
@@ -1866,9 +1866,21 @@ void MainWindow::processUpdates() {
lastHidden = hidden;
}
}
- if (lastVersion < QVersionNumber(2,1,6)) {
+ if (lastVersion < QVersionNumber(2, 1, 6)) {
ui->modList->header()->setSectionHidden(ModList::COL_NOTES, true);
}
+ if (lastVersion < QVersionNumber(2, 2, 0)) {
+ QSettings &instance = Settings::instance().directInterface();
+ instance.beginGroup("Settings");
+ instance.remove("steam_password");
+ instance.remove("nexus_username");
+ instance.remove("nexus_password");
+ instance.remove("nexus_api_key");
+ instance.endGroup();
+ instance.beginGroup("Servers");
+ instance.remove("");
+ instance.endGroup();
+ }
}
if (currentVersion > lastVersion) {
@@ -5366,7 +5378,7 @@ void MainWindow::on_actionUpdate_triggered()
}
-void MainWindow::on_actionEndorseMO_triggered()
+void MainWindow::actionEndorseMO()
{
// Normally this would be the managed game but MO2 is only uploaded to the Skyrim SE site right now
IPluginGame * game = m_OrganizerCore.getGame("skyrimse");
@@ -5381,7 +5393,7 @@ void MainWindow::on_actionEndorseMO_triggered()
}
}
-void MainWindow::on_actionWontEndorseMO_triggered()
+void MainWindow::actionWontEndorseMO()
{
// Normally this would be the managed game but MO2 is only uploaded to the Skyrim SE site right now
IPluginGame * game = m_OrganizerCore.getGame("skyrimse");