Author: cazfi
Date: Sat Aug  6 12:00:21 2016
New Revision: 33466

URL: http://svn.gna.org/viewcvs/freeciv?rev=33466&view=rev
Log:
Set ruledit title within window constructor

See patch #7553

Modified:
    trunk/tools/ruledit/ruledit_qt.cpp

Modified: trunk/tools/ruledit/ruledit_qt.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/tools/ruledit/ruledit_qt.cpp?rev=33466&r1=33465&r2=33466&view=diff
==============================================================================
--- trunk/tools/ruledit/ruledit_qt.cpp  (original)
+++ trunk/tools/ruledit/ruledit_qt.cpp  Sat Aug  6 12:00:21 2016
@@ -60,12 +60,10 @@
 {
   ruledit_main *main_window;
   QWidget *central;
-  const QString title = QString::fromUtf8(R__("Freeciv Ruleset Editor"));
 
   qapp = new QApplication(argc, argv);
   central = new QWidget;
   main_window = new ruledit_main(qapp, central);
-  main_window->setWindowTitle(title);
 
   gui = new ruledit_gui;
   gui->setup(central);
@@ -270,8 +268,12 @@
 **************************************************************************/
 ruledit_main::ruledit_main(QApplication *qapp_in, QWidget *central_in) : 
QMainWindow()
 {
+  const QString title = QString::fromUtf8(R__("Freeciv Ruleset Editor"));
+
   qapp = qapp_in;
   central = central_in;
+
+  setWindowTitle(title);
 }
 
 /**************************************************************************


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

Reply via email to