From: tsteven4 <13596209+tsteven4@users.noreply.github.com>
Date: Wed, 19 Jan 2022 20:10:08 +0000 (-0700)
Subject: fix donate dialog. (#821)
X-Git-Tag: archive/raspbian/1.10.0+ds-2+rpi1~1^2~12^2~2^2~2
X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5bbfd2dbea8fef0e73c906caeb74192b13c37b36;p=gpsbabel.git
fix donate dialog. (#821)
enable hypertext link.
fix overelapping text on linux, windows.
fix "never show this message again".
fix donate hypertext link target.
---
diff --git a/gui/donate.ui b/gui/donate.ui
index 3377303c5..b4fbf1f92 100644
--- a/gui/donate.ui
+++ b/gui/donate.ui
@@ -6,8 +6,8 @@
0
0
- 351
- 300
+ 350
+ 350
@@ -25,7 +25,7 @@
400
- 300
+ 400
@@ -36,25 +36,42 @@
10
13
- 312
- 249
+ 321
+ 321
-
+
+
+ 12
+
+
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
-<html><head><meta name="qrichtext" content="1" /><style type="text/css">
-p, li { white-space: pre-wrap; }
-</style></head><body style=" font-family:'Lucida Grande'; font-size:13pt; font-weight:400; font-style:normal;">
-<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">GPSBabel is free software built and supported by volunteers. It consumes vast amounts of time to create and support the software as well as money for mapping programs, GPS receivers, and development fixtures. Please see how you can <a href="https://www.gpsbabel.org"><span style=" text-decoration: underline; color:#0000ff;">contribute time or via PayPal (no account needed).</span></a></p></body></html>
+ <html><head/><body><p>GPSBabel is free software built and supported by volunteers. It consumes vast amounts of time to create and support the software as well as money for mapping programs, GPS receivers, and development fixtures. Please see how you can <a href="https://www.gpsbabel.org/contribute.html"><span style=" text-decoration: underline; color:#0000ff;">contribute time or via PayPal (no account needed).</span></a></p></body></html>
true
+
+ true
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 40
+
+
+
+
-
@@ -72,6 +89,19 @@ p, li { white-space: pre-wrap; }
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 40
+
+
+
+
-
-
diff --git a/gui/mainwindow.cc b/gui/mainwindow.cc
index 862629cfc..4c4c27d73 100644
--- a/gui/mainwindow.cc
+++ b/gui/mainwindow.cc
@@ -1014,13 +1014,15 @@ void MainWindow::closeActionX()
babelData_.runCount_++;
QDateTime now = QDateTime::currentDateTime();
- if ((babelData_.runCount_ == 1) ||
- ((babelData_.runCount_ > 5) && (babelData_.donateSplashed_.daysTo(now) > 30))) {
+ if (!babelData_.disableDonateDialog_ &&
+ ((babelData_.runCount_ == 1) ||
+ ((babelData_.runCount_ > 5) && (babelData_.donateSplashed_.daysTo(now) > 30)))) {
Donate donate(nullptr);
if (babelData_.donateSplashed_.date() == QDate(2010,1,1)) {
donate.showNever(false);
}
donate.exec();
+ babelData_.disableDonateDialog_ = donate.neverAgain();
babelData_.donateSplashed_ = now;
}
saveSettings();