diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-07-10 15:20:01 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2020-07-10 15:20:01 -0400 |
| commit | cf01fa955c72e0c159557e972d1f5a7005fc2121 (patch) | |
| tree | d3ff469072ce4441d8c9ccfff8275aafcca9614d /src | |
| parent | e0db7177b49ad73ab5296bc90a359d63a5503cbe (diff) | |
resize data tab columns when migrating from < 2.3 so the new columns are visible
Diffstat (limited to 'src')
| -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>()) { |
