--- a/QTfrontend/mapContainer.cpp Wed Oct 15 19:32:10 2008 +0000
+++ b/QTfrontend/mapContainer.cpp Thu Oct 16 16:29:47 2008 +0000
@@ -58,7 +58,7 @@
chooseMap->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
chooseMap->addItem(QComboBox::tr("generated map..."));
chooseMap->addItems(*mapList);
- connect(chooseMap, SIGNAL(activated(int)), this, SLOT(mapChanged(int)));
+ connect(chooseMap, SIGNAL(currentIndexChanged(int)), this, SLOT(mapChanged(int)));
mainLayout.addWidget(chooseMap, 1, 1);
QLabel * lblMap = new QLabel(tr("Map"), this);
@@ -200,7 +200,10 @@
chooseMap->setCurrentIndex(id);
loadMap(id);
if (pMap)
+ {
disconnect(pMap, 0, this, SLOT(setImage(const QImage)));
+ pMap = 0;
+ }
}
}