We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d025687 commit 90c365eCopy full SHA for 90c365e
src/tiled/mapeditor.cpp
@@ -367,7 +367,6 @@ void MapEditor::setCurrentDocument(Document *document)
367
mWidgetStack->setCurrentWidget(mapView);
368
369
mLayerDock->setMapDocument(mapDocument);
370
- mToolManager->setMapDocument(mapDocument);
371
372
if (mZoomable) {
373
mZoomable->setComboBox(nullptr);
@@ -408,6 +407,9 @@ void MapEditor::setCurrentDocument(Document *document)
408
407
mapScene->disableSelectedTool();
409
mViewWithTool = nullptr;
410
}
+
411
+ mToolManager->setMapDocument(mapDocument);
412
413
if (mapView) {
414
MapScene *mapScene = mapView->mapScene();
415
mapScene->setSelectedTool(mSelectedTool);
0 commit comments