From 6e4626852cc72b4869c07399ef7cc8eeaa447acc Mon Sep 17 00:00:00 2001 From: Tannin Date: Sun, 29 Jun 2014 15:09:45 +0200 Subject: - re-inserted code for bsa hiding (this was necessary to enforce expected bsa order after all) - bsas from foreign bsas are now loaded as expected by hook.dll as well - state of log-window-split is now saved - auto completion in installer name boxes is now case-sensitive so that users can change casing of the mod names - bugfix: self updater did enforce the skyrim url for MO updates but not the game_id - bugfix: modinfo dialog didn't correctly read mod meta information on opening - bugfix: MO didn't report on endorsement (for MO) --- src/mainwindow.cpp | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'src/mainwindow.cpp') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 48b2a7a9..87eca8df 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -2059,6 +2059,10 @@ void MainWindow::readSettings() ui->splitter->restoreState(settings.value("window_split").toByteArray()); } + if (settings.contains("log_split")) { + ui->topLevelSplitter->restoreState(settings.value("log_split").toByteArray()); + } + bool filtersVisible = settings.value("filters_visible", false).toBool(); setCategoryListVisible(filtersVisible); ui->displayCategoriesBtn->setChecked(filtersVisible); @@ -2104,6 +2108,7 @@ void MainWindow::storeSettings() settings.setValue("window_geometry", saveGeometry()); settings.setValue("window_split", ui->splitter->saveState()); + settings.setValue("log_split", ui->topLevelSplitter->saveState()); settings.setValue("browser_geometry", m_IntegratedBrowser.saveGeometry()); @@ -2353,8 +2358,6 @@ QList MainWindow::findFileInfos(const QString &path, const result.append(info); } } - } else { - qDebug("directory %s not found", qPrintable(path)); } return result; } @@ -4729,6 +4732,18 @@ void MainWindow::nxmUpdatesAvailable(const std::vector &modIDs, QVariant us } } +void MainWindow::nxmEndorsementToggled(int, QVariant, QVariant resultData, int) +{ + if (resultData.toBool()) { + ui->actionEndorseMO->setVisible(false); + QMessageBox::question(this, tr("Thank you!"), tr("Thank you for your endorsement!")); + } + + if (!disconnect(sender(), SIGNAL(nxmEndorsementToggled(int, QVariant, QVariant, int)), + this, SLOT(nxmEndorsementToggled(int, QVariant, QVariant, int)))) { + qCritical("failed to disconnect endorsement slot"); + } +} void MainWindow::nxmDownloadURLs(int, int, QVariant, QVariant resultData, int) { -- cgit v1.3.1