r7951 - in /trunk/qt4-gui/src/core: licqgui.cpp mainwin.cpp

[email protected]
Newsgroups gmane.network.licq.cvs
Message-ID <20101027170847.CF32A224B84@thejon>
Author: flynd
Date: Thu Oct 28 02:08:47 2010
New Revision: 7951

Log:
When showing main window, also make sure it's raised. This closes #1700.

Modified:
    trunk/qt4-gui/src/core/licqgui.cpp
    trunk/qt4-gui/src/core/mainwin.cpp

Modified: trunk/qt4-gui/src/core/licqgui.cpp
==============================================================================
--- trunk/qt4-gui/src/core/licqgui.cpp (original)
+++ trunk/qt4-gui/src/core/licqgui.cpp Thu Oct 28 02:08:47 2010
@@ -1723,6 +1723,7 @@
     default:
       // Ensure that main window is visible when the dock gets disabled:
       myMainWindow->show();
+      myMainWindow->raise();
       return;
   }
 

Modified: trunk/qt4-gui/src/core/mainwin.cpp
==============================================================================
--- trunk/qt4-gui/src/core/mainwin.cpp (original)
+++ trunk/qt4-gui/src/core/mainwin.cpp Thu Oct 28 02:08:47 2010
@@ -254,7 +254,11 @@
   updateGroups(true);
 
   setMiniMode(conf->miniMode());
-  setVisible(!conf->mainwinStartHidden() && !bStartHidden);
+  if(!conf->mainwinStartHidden() && !bStartHidden)
+  {
+    setVisible(true);
+    raise();
+  }
 
   // verify we exist
   if (Licq::gUserManager.NumOwners() == 0)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.