Author: mir3x
Date: Sun Sep  4 16:57:49 2016
New Revision: 33749

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

See patch #7666


Modified:
    trunk/client/gui-qt/themes.cpp

Modified: trunk/client/gui-qt/themes.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-qt/themes.cpp?rev=33749&r1=33748&r2=33749&view=diff
==============================================================================
--- trunk/client/gui-qt/themes.cpp      (original)
+++ trunk/client/gui-qt/themes.cpp      Sun Sep  4 16:57:49 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