From be730d3143ecae2229a976529288eabb3b0965ee Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Sun, 23 Nov 2014 23:50:56 +0100 Subject: [PATCH] Ensure that the show event handling of the op map widget only creates one connection --- libs/opmapcontrol/src/mapwidget/opmapwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/opmapcontrol/src/mapwidget/opmapwidget.cpp b/libs/opmapcontrol/src/mapwidget/opmapwidget.cpp index ee3cc5b24..23c895be7 100644 --- a/libs/opmapcontrol/src/mapwidget/opmapwidget.cpp +++ b/libs/opmapcontrol/src/mapwidget/opmapwidget.cpp @@ -225,7 +225,7 @@ namespace mapcontrol } 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(); QGraphicsView::showEvent(event); } -- 2.22.0