Don't send empty theme in config
authorunc0rr
Tue, 10 Dec 2013 00:00:08 +0400
changeset 9771 6fb8dafe57f7
parent 9770 5706b637bae2
child 9772 30a9e740ec09
Don't send empty theme in config
QTfrontend/ui/widget/gamecfgwidget.cpp
--- a/QTfrontend/ui/widget/gamecfgwidget.cpp	Mon Dec 09 23:32:57 2013 +0400
+++ b/QTfrontend/ui/widget/gamecfgwidget.cpp	Tue Dec 10 00:00:08 2013 +0400
@@ -390,7 +390,10 @@
 
     seedChanged(pMapContainer->getCurrentSeed());
     templateFilterChanged(pMapContainer->getTemplateFilter());
-    themeChanged(pMapContainer->getCurrentTheme());
+
+    QString t = pMapContainer->getCurrentTheme();
+    if(!t.isEmpty())
+        themeChanged(t);
 
     schemeChanged(GameSchemes->currentIndex());
     scriptChanged(Scripts->currentIndex());