Debian Codegraph @

debian/patches/gpsbabelfe_disable_version_check

raw
1 Disable version mismatch check.
2
3 --- a/gui/preferences.ui
4 +++ b/gui/preferences.ui
5 @@ -53,13 +53,6 @@
6 </property>
7 </widget>
8 </item>
9 - <item>
10 - <widget class="QCheckBox" name="ignoreVersionMismatchCheck">
11 - <property name="text">
12 - <string>Ignore mismatch between command line and GUI version.</string>
13 - </property>
14 - </widget>
15 - </item>
16 </layout>
17 </widget>
18 </widget>
19 --- a/gui/preferences.cc
20 +++ b/gui/preferences.cc
21 @@ -49,7 +49,6 @@ Preferences::Preferences(QWidget* parent, QList<Format>& formatList,
22
23 ui_.startupCheck->setChecked(babelData_.startupVersionCheck_);
24 ui_.reportStatisticsCheck->setChecked(babelData_.reportStatistics_);
25 - ui_.ignoreVersionMismatchCheck->setChecked(babelData_.ignoreVersionMismatch_);
26
27 connect(ui_.buttonBox, &QDialogButtonBox::accepted, this, &Preferences::acceptClicked);
28 connect(ui_.buttonBox, &QDialogButtonBox::rejected, this, &Preferences::rejectClicked);
29 @@ -89,7 +88,6 @@ void Preferences::acceptClicked()
30
31 babelData_.startupVersionCheck_ = ui_.startupCheck->isChecked();
32 babelData_.reportStatistics_ = ui_.reportStatisticsCheck->isChecked();
33 - babelData_.ignoreVersionMismatch_ = ui_.ignoreVersionMismatchCheck->isChecked();
34 accept();
35 }
36
37 --- a/gui/babeldata.h
38 +++ b/gui/babeldata.h
39 @@ -153,7 +153,7 @@ public:
40 bool startupVersionCheck_{true};
41 bool reportStatistics_{true};
42 bool allowBetaUpgrades_{false};
43 - bool ignoreVersionMismatch_{false};
44 + bool ignoreVersionMismatch_{true};
45 bool disableDonateDialog_{false};
46 QDateTime donateSplashed_;
47 };