gpsbabel-1.5.4-disable_version_check.patch 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. --- a/gui/preferences.ui 2017-01-21 00:38:44.929972188 +0100
  2. +++ b/gui/preferences.ui 2017-01-21 00:50:05.314477610 +0100
  3. @@ -46,13 +46,6 @@
  4. </property>
  5. </widget>
  6. </item>
  7. - <item>
  8. - <widget class="QCheckBox" name="ignoreVersionMismatchCheck">
  9. - <property name="text">
  10. - <string>Ignore mismatch between command line and GUI version.</string>
  11. - </property>
  12. - </widget>
  13. - </item>
  14. </layout>
  15. </widget>
  16. </widget>
  17. --- a/gui/preferences.cc 2017-01-21 00:39:20.648418701 +0100
  18. +++ b/gui/preferences.cc 2017-01-21 00:50:33.451829352 +0100
  19. @@ -40,7 +40,6 @@
  20. ui_.setupUi(this);
  21. ui_.reportStatisticsCheck->setChecked(babelData_.reportStatistics_);
  22. - ui_.ignoreVersionMismatchCheck->setChecked(babelData_.ignoreVersionMismatch_);
  23. // Because of an unfortunate bug in 1.4.0, we turn this off in 1.4.1.
  24. if (VERSION == QString("1.4.1"))
  25. babelData_.ignoreVersionMismatch_ = false;
  26. @@ -82,7 +81,6 @@
  27. }
  28. babelData_.reportStatistics_ = ui_.reportStatisticsCheck->isChecked();
  29. - babelData_.ignoreVersionMismatch_ = ui_.ignoreVersionMismatchCheck->isChecked();
  30. accept();
  31. }
  32. --- a/gui/babeldata.h 2017-01-21 00:40:03.888959247 +0100
  33. +++ b/gui/babeldata.h 2017-01-21 00:51:05.753233149 +0100
  34. @@ -66,7 +66,7 @@
  35. startupVersionCheck_(false),
  36. reportStatistics_(false),
  37. allowBetaUpgrades_(false),
  38. - ignoreVersionMismatch_(false),
  39. + ignoreVersionMismatch_(true),
  40. disableDonateDialog_(false),
  41. donateSplashed_(QDateTime(QDate(2010, 1, 1), QTime(0, 0, 0)))
  42. {