diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-07-10 15:55:13 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-10 15:55:13 -0400 |
| commit | 4fc61c7cd4befb79beabc2cc4e6b8b9a954db95c (patch) | |
| tree | 5fe16c49d0fd410ba1c3440c5a09c36fb3128904 /src/mainwindow.cpp | |
| parent | 69b86b206b2b659653b6f3c6cece77bf8c10ab0a (diff) | |
| parent | 315776799fe38b09b4c0684bd4c1236bdf2e329e (diff) | |
Merge pull request #1152 from isanae/small-fixes
Small fixes
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 11 |
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>()) { |
