[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[vidalia-svn] r2178: Make the Tor website address a clickable link if we're compi (in trunk: . src/gui)
Author: edmanm
Date: 2007-12-05 02:26:16 -0500 (Wed, 05 Dec 2007)
New Revision: 2178
Modified:
trunk/
trunk/src/gui/mainwindow.cpp
Log:
r2232@lysithea: edmanm | 2007-12-05 02:26:11 -0500
Make the Tor website address a clickable link if we're compiled against a
recent enough Qt.
Property changes on: trunk
___________________________________________________________________
svk:merge ticket from /local/vidalia/trunk [r2232] on 0108964c-5b0b-4c9e-969f-e2288315d100
Modified: trunk/src/gui/mainwindow.cpp
===================================================================
--- trunk/src/gui/mainwindow.cpp 2007-12-05 07:03:34 UTC (rev 2177)
+++ trunk/src/gui/mainwindow.cpp 2007-12-05 07:26:16 UTC (rev 2178)
@@ -1032,12 +1032,16 @@
static bool alreadyWarned = false;
if (!alreadyWarned) {
+ QString website = "https://www.torproject.org/";
+#if QT_VERSION >= 0x040200
+ website = QString("<a href=\"%1\">%1</a>").arg(website);
+#endif
+
VMessageBox::information(this,
tr("Tor Update Available"),
p(tr("The currently installed version of Tor is out of date or no longer "
"recommended. Please visit the Tor website to download the latest "
- "version."))
- + p(tr("Tor website: https://www.torproject.org/")),
+ "version.")) + p(tr("Tor website: %1").arg(website)),
VMessageBox::Ok);
alreadyWarned = true;
}