Prevented QT4 gui from changing size while maximized. This should fix https://trac...
authorNiklas Hayer <nikha354@gmail.com>
Sun, 10 May 2009 18:44:09 +0000 (20:44 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 10 May 2009 23:53:13 +0000 (01:53 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit e83df29b1f39dd46fe8893e5e111ed8be9a17e2d)

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/gui/qt4/main_interface.cpp

index ab0eb9a..8baf686 100644 (file)
@@ -637,7 +637,7 @@ QSize MainInterface::sizeHint() const
  */
 void MainInterface::doComponentsUpdate()
 {
-    if( isFullScreen() ) return;
+    if( isFullScreen() || isMaximized() ) return;
 
     msg_Dbg( p_intf, "Updating the geometry" );
     /* Here we resize to sizeHint() and not adjustsize because we want