Author: mir3x
Date: Mon Dec 14 02:42:16 2015
New Revision: 30983

URL: http://svn.gna.org/viewcvs/freeciv?rev=30983&view=rev
Log:
When changing help pages in Qt-client there could be visible
extra resize effect on info panel with progressbars
(easily visible when window was maximized) 

See bug #24160


Modified:
    branches/S2_6/client/gui-qt/helpdlg.cpp

Modified: branches/S2_6/client/gui-qt/helpdlg.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/gui-qt/helpdlg.cpp?rev=30983&r1=30982&r2=30983&view=diff
==============================================================================
--- branches/S2_6/client/gui-qt/helpdlg.cpp     (original)
+++ branches/S2_6/client/gui-qt/helpdlg.cpp     Mon Dec 14 02:42:16 2015
@@ -361,6 +361,7 @@
     splitter->setStretchFactor(1, 75);
     splitter->setSizes(splitter_sizes);
     main_widget = splitter;
+    info_panel->setLayout(info_layout);
   } else {
     main_widget = right;
   }
@@ -401,7 +402,7 @@
 void help_widget::show_info_panel()
 {
   info_panel = new QWidget();
-  info_layout = new QVBoxLayout(info_panel);
+  info_layout = new QVBoxLayout();
 }
 
 /****************************************************************************


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

Reply via email to