Commit be730d31 authored by Lorenz Meier's avatar Lorenz Meier

Ensure that the show event handling of the op map widget only creates one connection

parent 501e3ac0
...@@ -225,7 +225,7 @@ namespace mapcontrol ...@@ -225,7 +225,7 @@ namespace mapcontrol
} }
void OPMapWidget::showEvent(QShowEvent *event) void OPMapWidget::showEvent(QShowEvent *event)
{ {
connect(&mscene,SIGNAL(sceneRectChanged(QRectF)),map,SLOT(resize(QRectF))); connect(&mscene,SIGNAL(sceneRectChanged(QRectF)),map,SLOT(resize(QRectF)), Qt::UniqueConnection);
map->start(); map->start();
QGraphicsView::showEvent(event); QGraphicsView::showEvent(event);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment