From a29d1e97f9163d12b52ce6fb92de87472e9a3dd5 Mon Sep 17 00:00:00 2001 From: Debian GPS team Date: Tue, 25 Jan 2022 22:19:17 +0000 Subject: [PATCH] gpsbabelfe_do-not-check-for-newer-version Disable check for newer versions on start. Gbp-Pq: Name gpsbabelfe_do-not-check-for-newer-version --- gui/babeldata.h | 2 +- gui/mainwindow.cc | 16 ---------------- gui/mainwinui.ui | 6 ------ gui/preferences.cc | 2 -- gui/preferences.ui | 7 ------- 5 files changed, 1 insertion(+), 32 deletions(-) diff --git a/gui/babeldata.h b/gui/babeldata.h index ba986a7..7a4112e 100644 --- a/gui/babeldata.h +++ b/gui/babeldata.h @@ -63,7 +63,7 @@ public: upgradeErrors_(0), upgradeOffers_(0), runCount_(0), - startupVersionCheck_(true), + startupVersionCheck_(false), reportStatistics_(false), allowBetaUpgrades_(false), ignoreVersionMismatch_(true), diff --git a/gui/mainwindow.cc b/gui/mainwindow.cc index 4c4c27d..701883f 100644 --- a/gui/mainwindow.cc +++ b/gui/mainwindow.cc @@ -176,7 +176,6 @@ MainWindow::MainWindow(QWidget* parent): QMainWindow(parent) connect(ui_.actionAbout, &QAction::triggered, this, &MainWindow::aboutActionX); connect(ui_.actionVisit_Website, &QAction::triggered, this, &MainWindow::visitWebsiteActionX); connect(ui_.actionMake_a_Donation, &QAction::triggered, this, &MainWindow::donateActionX); - connect(ui_.actionUpgradeCheck, &QAction::triggered, this, &MainWindow::upgradeCheckActionX); connect(ui_.actionPreferences, &QAction::triggered, this, &MainWindow::preferencesActionX); // TODO: Qt6 deleted the obsolete overloaded signal QComboBox::currentIndexChanged(const QString &text) @@ -233,17 +232,6 @@ MainWindow::MainWindow(QWidget* parent): QMainWindow(parent) restoreSettings(); upgrade = new UpgradeCheck(this, formatList_, babelData_); - if (babelData_.startupVersionCheck_) { - upgrade->checkForUpgrade(babelVersion_, babelData_.upgradeCheckTime_, - allowBetaUpgrades()); - } - - if (!babelData_.ignoreVersionMismatch_ && babelVersion_ != VERSION) { - VersionMismatch vm(nullptr, babelVersion_, QString(VERSION)); - - vm.exec(); - babelData_.ignoreVersionMismatch_ = vm.neverAgain(); - } } //------------------------------------------------------------------------ @@ -1007,10 +995,6 @@ void MainWindow::applyActionX() //------------------------------------------------------------------------ void MainWindow::closeActionX() { - QDateTime wt= upgrade->getUpgradeWarningTime(); - if (wt.isValid()) { - babelData_.upgradeCheckTime_ = wt; - } babelData_.runCount_++; QDateTime now = QDateTime::currentDateTime(); diff --git a/gui/mainwinui.ui b/gui/mainwinui.ui index f5765e1..4533f23 100644 --- a/gui/mainwinui.ui +++ b/gui/mainwinui.ui @@ -691,7 +691,6 @@ - @@ -720,11 +719,6 @@ Preferences... - - - Check for Upgrade - - Visit Website... diff --git a/gui/preferences.cc b/gui/preferences.cc index 783dcfb..d2aa96a 100644 --- a/gui/preferences.cc +++ b/gui/preferences.cc @@ -40,7 +40,6 @@ Preferences::Preferences(QWidget* parent, QList& formatList, { ui_.setupUi(this); - ui_.startupCheck->setChecked(babelData_.startupVersionCheck_); ui_.reportStatisticsCheck->setChecked(babelData_.reportStatistics_); connect(ui_.buttonBox, &QDialogButtonBox::accepted, this, &Preferences::acceptClicked); @@ -79,7 +78,6 @@ void Preferences::acceptClicked() formatList_[i].setHidden(item->checkState() == Qt::Unchecked); } - babelData_.startupVersionCheck_ = ui_.startupCheck->isChecked(); babelData_.reportStatistics_ = ui_.reportStatisticsCheck->isChecked(); accept(); } diff --git a/gui/preferences.ui b/gui/preferences.ui index ac671d7..d0b1f72 100644 --- a/gui/preferences.ui +++ b/gui/preferences.ui @@ -39,13 +39,6 @@ - - - - Check for newer version on start. - - - -- 2.30.2