Author: mir3x
Date: Thu Jan 12 11:25:27 2017
New Revision: 34824

URL: http://svn.gna.org/viewcvs/freeciv?rev=34824&view=rev
Log:
Qt client - fix default button in disband dialog
Reported by Gogo Gugelhupf <gogo>

See bug #25421


Modified:
    trunk/client/gui-qt/dialogs.cpp
    trunk/data/themes/gui-qt/NightStalker/resource.qss

Modified: trunk/client/gui-qt/dialogs.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-qt/dialogs.cpp?rev=34824&r1=34823&r2=34824&view=diff
==============================================================================
--- trunk/client/gui-qt/dialogs.cpp     (original)
+++ trunk/client/gui-qt/dialogs.cpp     Thu Jan 12 11:25:27 2017
@@ -2702,8 +2702,8 @@
                   unit_list_size(punits))).arg(unit_list_size(punits));
   pb = addButton(_("Yes"), QMessageBox::AcceptRole);
   addButton(_("No"), QMessageBox::RejectRole);
-  setDefaultButton(QMessageBox::Cancel);
   set_text_title(str, _("Disband units"));
+  setDefaultButton(pb);
   connect(pb, SIGNAL(clicked()), this, SLOT(disband_clicked()));
 }
 

Modified: trunk/data/themes/gui-qt/NightStalker/resource.qss
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/data/themes/gui-qt/NightStalker/resource.qss?rev=34824&r1=34823&r2=34824&view=diff
==============================================================================
--- trunk/data/themes/gui-qt/NightStalker/resource.qss  (original)
+++ trunk/data/themes/gui-qt/NightStalker/resource.qss  Thu Jan 12 11:25:27 2017
@@ -148,6 +148,9 @@
 }
 
 hud_message_box QDialogButtonBox QPushButton:default {
+  color: white;
+  background: #414a57;
+  border: 2px solid #3399FF;
   padding: 2px;
 }
 


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

Reply via email to