[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[vidalia-svn] r3392: Change the "Your Tor seems to be out of date, go to this web (vidalia/branches/auto-updates/src/vidalia)



Author: edmanm
Date: 2008-12-13 02:10:38 -0500 (Sat, 13 Dec 2008)
New Revision: 3392

Modified:
   vidalia/branches/auto-updates/src/vidalia/mainwindow.cpp
Log:
Change the "Your Tor seems to be out of date, go to this website" dialog
to a "Your Tor seems to be out of date, click Yes" dialog.


Modified: vidalia/branches/auto-updates/src/vidalia/mainwindow.cpp
===================================================================
--- vidalia/branches/auto-updates/src/vidalia/mainwindow.cpp	2008-12-13 06:16:38 UTC (rev 3391)
+++ vidalia/branches/auto-updates/src/vidalia/mainwindow.cpp	2008-12-13 07:10:38 UTC (rev 3392)
@@ -1367,17 +1367,17 @@
   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
+    int ret = VMessageBox::information(this,
+                tr("Tor Update Available"),
+                p(tr("The currently installed version of Tor is out of date "
+                     "or no longer recommended."))
+                  + p(tr("Would you like to check if a newer package is "
+                         "available for installation?")),
+                VMessageBox::Yes|VMessageBox::Default,
+                VMessageBox::No|VMessageBox::Escape);
 
-    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: %1").arg(website)),
-      VMessageBox::Ok);
+    if (ret == VMessageBox::Yes)
+      checkForUpdatesWithUI();
     alreadyWarned = true;
   }
 }