Author: cazfi Date: Sat Aug 6 12:00:27 2016 New Revision: 33467 URL: http://svn.gna.org/viewcvs/freeciv?rev=33467&view=rev Log: Set ruledit title within window constructor
See patch #7553 Modified: branches/S2_6/tools/ruledit/ruledit_qt.cpp Modified: branches/S2_6/tools/ruledit/ruledit_qt.cpp URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_6/tools/ruledit/ruledit_qt.cpp?rev=33467&r1=33466&r2=33467&view=diff ============================================================================== --- branches/S2_6/tools/ruledit/ruledit_qt.cpp (original) +++ branches/S2_6/tools/ruledit/ruledit_qt.cpp Sat Aug 6 12:00:27 2016 @@ -59,12 +59,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); @@ -260,8 +258,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