Show
Ignore:
Timestamp:
04/05/08 19:15:52 (8 months ago)
Author:
flynd
Message:

Change behaviour on clicking the tray icon. If main window is visible but not active, it will now be activated instead of hidden.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/qt4-gui/src/core/mainwin.cpp

    r6097 r6127  
    311311void MainWindow::trayIconClicked() 
    312312{ 
    313   if (isVisible() && !isMinimized()) 
     313  if (isVisible() && !isMinimized() && isActiveWindow()) 
    314314  { 
    315315    hide(); 
     
    330330      setMainwinSticky(true); 
    331331 
     332    activateWindow(); 
    332333    raise(); 
    333334  }