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

[tor-commits] [vidalia/alpha] Hide Vidalia when activating the tray icon



commit a651bb471a947843f00782839f78f15b1af1c3d6
Author: Tomas Touceda <chiiph@xxxxxxxxxx>
Date:   Wed May 18 02:24:35 2011 -0300

    Hide Vidalia when activating the tray icon
---
 src/vidalia/MainWindow.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/vidalia/MainWindow.cpp b/src/vidalia/MainWindow.cpp
index c373d01..195af30 100644
--- a/src/vidalia/MainWindow.cpp
+++ b/src/vidalia/MainWindow.cpp
@@ -269,7 +269,7 @@ void
 MainWindow::trayIconActivated(QSystemTrayIcon::ActivationReason reason)
 {
   if (reason == QSystemTrayIcon::DoubleClick)
-    setVisible(true);
+    setVisible(!isVisible());
 }
 
 void



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits