Minor cleanups

This commit is contained in:
Nyall Dawson 2018-05-28 12:42:25 +10:00
parent 614800c918
commit 6fd8890c4d
2 changed files with 3 additions and 5 deletions

View File

@ -278,8 +278,6 @@ QgsVertexEditor::QgsVertexEditor(
QgsSelectedFeature *selectedFeature,
QgsMapCanvas *canvas )
: mCanvas( canvas )
, mUpdatingTableSelection( false )
, mUpdatingVertexSelection( false )
{
setWindowTitle( tr( "Vertex Editor" ) );
mTableView = new QTableView( this );
@ -309,7 +307,7 @@ void QgsVertexEditor::updateEditor( QgsVectorLayer *layer, QgsSelectedFeature *s
mLayer = layer;
mSelectedFeature = selectedFeature;
// TOOD We really should just update the model itself.
// TODO We really should just update the model itself.
mVertexModel = new QgsVertexEditorModel( mLayer, mSelectedFeature, mCanvas, this );
mTableView->setModel( mVertexModel );

View File

@ -97,8 +97,8 @@ class QgsVertexEditor : public QgsDockWidget
private:
bool mUpdatingTableSelection;
bool mUpdatingVertexSelection;
bool mUpdatingTableSelection = false;
bool mUpdatingVertexSelection = false;
};