Author: mir3x
Date: Sun Sep  4 16:57:39 2016
New Revision: 33748

URL: http://svn.gna.org/viewcvs/freeciv?rev=33748&view=rev
Log:
Qt client - added default system theme

See patch #7666


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

Modified: branches/S2_6/client/gui-qt/themes.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/gui-qt/themes.cpp?rev=33748&r1=33747&r2=33748&view=diff
==============================================================================
--- branches/S2_6/client/gui-qt/themes.cpp      (original)
+++ branches/S2_6/client/gui-qt/themes.cpp      Sun Sep  4 16:57:39 2016
@@ -37,6 +37,9 @@
 *****************************************************************************/
 void qtg_gui_load_theme(const char *directory, const char *theme_name)
 {
+  if (QString(theme_name) == QString("Default")) {
+    return;
+  }
   qapp->setStyle(QStyleFactory::create(theme_name));
 }
 
@@ -75,7 +78,8 @@
   QByteArray qba;;
   QString str;
 
-  sl = QStyleFactory::keys();
+  sl.append("Default");
+  sl = sl + QStyleFactory::keys();
   array = new char *[sl.count()];
   *count = sl.count();
 


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

Reply via email to