--- 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);
}