Skip to content

Commit 2cfbb28

Browse files
committedJan 23, 2019
[node editor] Restore node editor panel postion/docked state
1 parent 642ff63 commit 2cfbb28

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed
 

‎src/app/vertextool/qgsvertextool.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1078,13 +1078,21 @@ void QgsVertexTool::showVertexEditor() //#spellok
10781078
if ( !mVertexEditor )
10791079
{
10801080
mVertexEditor.reset( new QgsVertexEditor( m.layer() ? m.layer() : currentVectorLayer(), mSelectedFeature ? mSelectedFeature.get() : nullptr, mCanvas ) );
1081-
QgisApp::instance()->addDockWidget( Qt::LeftDockWidgetArea, mVertexEditor.get() );
1081+
if ( !QgisApp::instance()->restoreDockWidget( mVertexEditor.get() ) )
1082+
QgisApp::instance()->addDockWidget( Qt::LeftDockWidgetArea, mVertexEditor.get() );
1083+
10821084
connect( mVertexEditor.get(), &QgsVertexEditor::deleteSelectedRequested, this, &QgsVertexTool::deleteVertexEditorSelection );
10831085
connect( mVertexEditor.get(), &QgsVertexEditor::editorClosed, this, &QgsVertexTool::cleanupVertexEditor );
1086+
1087+
mVertexEditor->show();
1088+
mVertexEditor->raise();
10841089
}
10851090
else
10861091
{
10871092
mVertexEditor->updateEditor( m.layer(), mSelectedFeature.get() );
1093+
1094+
mVertexEditor->show();
1095+
mVertexEditor->raise();
10881096
}
10891097

10901098
if ( mSelectedFeature )

0 commit comments

Comments
 (0)
Please sign in to comment.