summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index b2907db9..dfe0fbde 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -2146,7 +2146,7 @@ void MainWindow::activateProxy(bool activate)
busyDialog.setWindowFlags(busyDialog.windowFlags() & ~Qt::WindowContextHelpButtonHint);
busyDialog.setWindowModality(Qt::WindowModal);
busyDialog.show();
-
+
QFutureWatcher<void> futureWatcher;
QEventLoop loop;
connect(&futureWatcher, &QFutureWatcher<void>::finished,
@@ -2156,7 +2156,7 @@ void MainWindow::activateProxy(bool activate)
futureWatcher.setFuture(
QtConcurrent::run(MainWindow::setupNetworkProxy, activate)
);
-
+
// wait for setupNetworkProxy while keeping ui responsive
loop.exec();
@@ -2226,6 +2226,11 @@ void MainWindow::processUpdates() {
ui->downloadView->header()->hideSection(i);
}
}
+
+ if (lastVersion < QVersionNumber(2, 3)) {
+ for (int i=1; i<ui->dataTree->header()->count(); ++i)
+ ui->dataTree->setColumnWidth(i, 150);
+ }
}
if (currentVersion < lastVersion) {
@@ -5794,7 +5799,7 @@ void MainWindow::nxmRequestFailed(QString gameName, int modID, int, QVariant, in
{
if (error == QNetworkReply::ContentAccessDenied || error == QNetworkReply::ContentNotFoundError) {
log::debug("{}", tr("Mod ID %1 no longer seems to be available on Nexus.").arg(modID));
-
+
// update last checked timestamp on orphaned mods as well to avoid repeating requests
QString gameNameReal;
for (IPluginGame* game : m_PluginContainer.plugins<IPluginGame>()) {