Commit 7a4fa990 authored by Benjamin Jakimow's avatar Benjamin Jakimow
parent 78929c62
......@@ -2774,4 +2774,9 @@ class MapViewDock(QgsDockWidget):
w = self.toolBox.currentWidget()
if isinstance(w, MapView):
return w
else:
# return first map view
views = self.mapViews()
if len(views) > 0:
return views[0]
return None
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