Author: mir3x
Date: Sun Aug  7 18:03:12 2016
New Revision: 33498

URL: http://svn.gna.org/viewcvs/freeciv?rev=33498&view=rev
Log:
Qt client - Failed to draw map on some circumstances.
Reported by Jacob Nevins <jtn>

See bug #24860


Modified:
    trunk/client/gui-qt/fc_client.cpp
    trunk/client/gui-qt/mapview.cpp

Modified: trunk/client/gui-qt/fc_client.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-qt/fc_client.cpp?rev=33498&r1=33497&r2=33498&view=diff
==============================================================================
--- trunk/client/gui-qt/fc_client.cpp   (original)
+++ trunk/client/gui-qt/fc_client.cpp   Sun Aug  7 18:03:12 2016
@@ -304,7 +304,6 @@
   case PAGE_GAME:
     if (gui_options.gui_qt_show_titlebar == false) {
       setWindowFlags(Qt::Window | Qt::CustomizeWindowHint);
-      showMaximized();
     }
     gui()->infotab->chtwdg->update_widgets();
     status_bar->setVisible(false);
@@ -312,10 +311,6 @@
     if (gui_options.gui_qt_fullscreen){
       gui()->showFullScreen();
       gui()->mapview_wdg->showFullScreen();
-    } else {
-      if (!isMaximized()) {
-        showMaximized();
-      }
     }
     menuBar()->setVisible(true);
     mapview_wdg->setFocus();

Modified: trunk/client/gui-qt/mapview.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-qt/mapview.cpp?rev=33498&r1=33497&r2=33498&view=diff
==============================================================================
--- trunk/client/gui-qt/mapview.cpp     (original)
+++ trunk/client/gui-qt/mapview.cpp     Sun Aug  7 18:03:12 2016
@@ -222,6 +222,7 @@
   QTimer *timer = new QTimer(this);
   connect(timer, SIGNAL(timeout()), this, SLOT(timer_event()));
   timer->start(200);
+  resize(0, 0);
   setMouseTracking(true);
 }
 


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to