--- a/QTfrontend/ui/widget/mapContainer.cpp Wed Jan 23 23:57:47 2013 +0400
+++ b/QTfrontend/ui/widget/mapContainer.cpp Wed Jan 23 16:35:26 2013 -0500
@@ -630,7 +630,6 @@
intSetMap(map);
}
-
void HWMapContainer::updateModelViews()
{
// restore theme selection
@@ -673,7 +672,6 @@
lblDesc->hide();
btnLoadMap->hide();
btnEditMap->hide();
- btnRandomize->hide();
switch (type)
{
@@ -683,7 +681,6 @@
lblMapList->setText(tr("Map size:"));
lblMapList->show();
generationStyles->show();
- btnRandomize->show();
break;
case MapModel::GeneratedMaze:
mapgen = MAPGEN_MAZE;
@@ -691,7 +688,6 @@
lblMapList->setText(tr("Maze style:"));
lblMapList->show();
mazeStyles->show();
- btnRandomize->show();
break;
case MapModel::HandDrawnMap:
mapgen = MAPGEN_DRAWN;
@@ -707,7 +703,6 @@
missionMapList->show();
lblDesc->setText(m_mapInfo.desc);
lblDesc->show();
- btnRandomize->show();
emit mapChanged(m_curMap);
break;
case MapModel::StaticMap:
@@ -716,7 +711,6 @@
lblMapList->setText(tr("Map:"));
lblMapList->show();
staticMapList->show();
- btnRandomize->show();
emit mapChanged(m_curMap);
break;
default:
@@ -749,9 +743,11 @@
else
{
QSize iconSize = btnTheme->icon().actualSize(QSize(65535, 65535));
+ btnTheme->setFixedHeight(64);
btnTheme->setIconSize(iconSize);
- btnTheme->setFixedHeight(64);
}
+
+ repaint();
}
void HWMapContainer::showThemePrompt()