Author: mir3x
Date: Sun Nov  1 18:00:28 2015
New Revision: 30336

URL: http://svn.gna.org/viewcvs/freeciv?rev=30336&view=rev
Log:
Added menu entries: "Save Options Now" and 
checkable "Save Options on Exit" for Qt client.

See bug #23950


Modified:
    branches/S2_6/client/gui-qt/menu.cpp
    branches/S2_6/client/gui-qt/menu.h

Modified: branches/S2_6/client/gui-qt/menu.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/gui-qt/menu.cpp?rev=30336&r1=30335&r2=30336&view=diff
==============================================================================
--- branches/S2_6/client/gui-qt/menu.cpp        (original)
+++ branches/S2_6/client/gui-qt/menu.cpp        Sun Nov  1 18:00:28 2015
@@ -412,6 +412,12 @@
   connect(act, SIGNAL(triggered()), this, SLOT(server_options()));
   act = menu->addAction(_("Messages"));
   connect(act, SIGNAL(triggered()), this, SLOT(messages_options()));
+  act = menu->addAction(_("Save Options Now"));
+  act->setIcon(style()->standardIcon(QStyle::SP_DialogSaveButton));
+  connect(act, SIGNAL(triggered()), this, SLOT(save_options_now()));
+  act = menu->addAction(_("Save Options on Exit"));
+  act->setCheckable(true);
+  act->setChecked(gui_options.save_options_on_exit);
   menu = pr;
   menu->addSeparator();
   act = menu->addAction(_("Save Game"));
@@ -2035,6 +2041,14 @@
   popup_messageopt_dialog();
 }
 
+/****************************************************************
+  Menu Save Options Now
+*****************************************************************/
+void mr_menu::save_options_now()
+{
+  options_save();
+}
+
 /***************************************************************************
   Invoke popup for quiting game
 ***************************************************************************/

Modified: branches/S2_6/client/gui-qt/menu.h
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/gui-qt/menu.h?rev=30336&r1=30335&r2=30336&view=diff
==============================================================================
--- branches/S2_6/client/gui-qt/menu.h  (original)
+++ branches/S2_6/client/gui-qt/menu.h  Sun Nov  1 18:00:28 2015
@@ -156,6 +156,7 @@
   void local_options();
   void server_options();
   void messages_options();
+  void save_options_now();
   void save_game();
   void save_game_as();
   void back_to_menu();


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

Reply via email to