Ticket #3194: vidalia-0.3.0-alpha-showhide_systray.patch

File vidalia-0.3.0-alpha-showhide_systray.patch, 507 bytes (added by anonym, 10 years ago)
  • src//vidalia/MainWindow.cpp

    diff -Naur vidalia-0.3.0.old/src//vidalia/MainWindow.cpp vidalia-0.3.0/src//vidalia/MainWindow.cpp
    old new  
    269269MainWindow::trayIconActivated(QSystemTrayIcon::ActivationReason reason)
    270270{
    271271  if (reason == QSystemTrayIcon::DoubleClick)
    272     setVisible(true);
     272    if (isVisible())
     273      hide();
     274    else
     275      show();
    273276}
    274277
    275278void