Skip to content
Permalink
Browse files

[node editor] Restore node editor panel postion/docked state

  • Loading branch information
nirvn committed Jan 23, 2019
1 parent 642ff63 commit 2cfbb28ddbdf7c8d8ada91182decee37db204af6
Showing with 9 additions and 1 deletion.
  1. +9 −1 src/app/vertextool/qgsvertextool.cpp
@@ -1078,13 +1078,21 @@ void QgsVertexTool::showVertexEditor() //#spellok
if ( !mVertexEditor )
{
mVertexEditor.reset( new QgsVertexEditor( m.layer() ? m.layer() : currentVectorLayer(), mSelectedFeature ? mSelectedFeature.get() : nullptr, mCanvas ) );
QgisApp::instance()->addDockWidget( Qt::LeftDockWidgetArea, mVertexEditor.get() );
if ( !QgisApp::instance()->restoreDockWidget( mVertexEditor.get() ) )
QgisApp::instance()->addDockWidget( Qt::LeftDockWidgetArea, mVertexEditor.get() );

connect( mVertexEditor.get(), &QgsVertexEditor::deleteSelectedRequested, this, &QgsVertexTool::deleteVertexEditorSelection );
connect( mVertexEditor.get(), &QgsVertexEditor::editorClosed, this, &QgsVertexTool::cleanupVertexEditor );

mVertexEditor->show();
mVertexEditor->raise();
}
else
{
mVertexEditor->updateEditor( m.layer(), mSelectedFeature.get() );

mVertexEditor->show();
mVertexEditor->raise();
}

if ( mSelectedFeature )

0 comments on commit 2cfbb28

Please sign in to comment.
You can’t perform that action at this time.