QTfrontend/mapContainer.cpp
changeset 329 4c3aad46baa5
parent 325 17c860483407
child 331 6bfc326e4976
--- a/QTfrontend/mapContainer.cpp	Sun Jan 14 13:23:15 2007 +0000
+++ b/QTfrontend/mapContainer.cpp	Sun Jan 14 14:08:40 2007 +0000
@@ -101,10 +101,8 @@
 {
   pMap = new HWMap();
   connect(pMap, SIGNAL(ImageReceived(const QImage)), this, SLOT(setImage(const QImage)));
-  emit seedChanged(m_seed);
   pMap->getImage(m_seed.toStdString());
   theme = (Themes->size() > 0) ? Themes->at(rand() % Themes->size()) : "steel";
-  emit themeChanged(theme);
 }
 
 QString HWMapContainer::getCurrentSeed() const
@@ -147,5 +145,7 @@
 void HWMapContainer::setRandomSeed()
 {
   m_seed = QUuid::createUuid().toString();
+  emit seedChanged(m_seed);
   changeImage();
+  emit themeChanged(theme);
 }