summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2014-06-30 22:37:21 +0200
committerTannin <devnull@localhost>2014-06-30 22:37:21 +0200
commitaf8973312188c3d90b8e3f8e2f8036d35e3f21ea (patch)
tree1af9bfd9de3df8d25dca2bec0ba2b712a2d4eb36 /src/mainwindow.cpp
parentbaf1240be76c09e7f7dc1b44daa6e404df24e770 (diff)
- bugfix: update.bsa is again treated like a regular bsa because hiding it from the archive-list made it impossible (in managed bsa mode) to overwrite files from update.bsa
- bugfix: disabled-state for mo management wasn't saved - bugfix: when starting an application, settings were saved twice - bugfix: origin ids and handles for directory updates were out of sync
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 87eca8df..9cbe9c40 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -1365,8 +1365,6 @@ HANDLE MainWindow::spawnBinaryDirect(const QFileInfo &binary, const QString &arg
void MainWindow::spawnBinary(const QFileInfo &binary, const QString &arguments, const QDir &currentDirectory, bool closeAfterStart, const QString &steamAppID)
{
- storeSettings();
-
LockedDialog *dialog = new LockedDialog(this);
dialog->show();
ON_BLOCK_EXIT([&] () { dialog->hide(); dialog->deleteLater(); });
@@ -1888,10 +1886,6 @@ void MainWindow::refreshBSAList()
QString extension = filename.right(3).toLower();
if (extension == "bsa") {
- if (filename.compare("update.bsa", Qt::CaseInsensitive) == 0) {
- // hack: ignore update.bsa because it confuses people
- continue;
- }
int index = m_ActiveArchives.indexOf(filename);
if (index == -1) {
index = 0xFFFF;
@@ -2074,6 +2068,10 @@ void MainWindow::readSettings()
if (settings.value("Settings/use_proxy", false).toBool()) {
activateProxy(true);
}
+
+ ui->manageArchivesBox->blockSignals(true);
+ ui->manageArchivesBox->setChecked(settings.value("manage_bsas", true).toBool());
+ ui->manageArchivesBox->blockSignals(false);
}
@@ -2113,6 +2111,7 @@ void MainWindow::storeSettings()
settings.setValue("browser_geometry", m_IntegratedBrowser.saveGeometry());
settings.setValue("filters_visible", ui->displayCategoriesBtn->isChecked());
+ settings.setValue("manage_bsas", ui->manageArchivesBox->isChecked());
settings.remove("customExecutables");
settings.beginWriteArray("customExecutables");