Skip to content

Commit

Permalink
[bugfix] Fix crash in node editor
Browse files Browse the repository at this point in the history
Fixes #17958 Node tool crashes QGIS when changing a value
  • Loading branch information
elpaso committed Jan 25, 2018
1 parent 8b682da commit 0e2995c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
6 changes: 0 additions & 6 deletions src/app/nodetool/qgsnodeeditor.cpp
Expand Up @@ -68,7 +68,6 @@ QgsNodeEditorModel::QgsNodeEditorModel( QgsVectorLayer *layer, QgsSelectedFeatur
mWidgetFont = parentWidget->font();
}

connect( mSelectedFeature, &QgsSelectedFeature::vertexMapChanged, this, &QgsNodeEditorModel::featureChanged );
}

int QgsNodeEditorModel::rowCount( const QModelIndex &parent ) const
Expand Down Expand Up @@ -273,11 +272,6 @@ bool QgsNodeEditorModel::calcR( int row, double &r, double &minRadius ) const
return true;
}

void QgsNodeEditorModel::featureChanged()
{
//TODO - avoid reset
reset();
}

QgsNodeEditor::QgsNodeEditor(
QgsVectorLayer *layer,
Expand Down
3 changes: 0 additions & 3 deletions src/app/nodetool/qgsnodeeditor.h
Expand Up @@ -64,9 +64,6 @@ class QgsNodeEditorModel : public QAbstractTableModel

bool calcR( int row, double &r, double &minRadius ) const;

private slots:

void featureChanged();
};

class QgsNodeEditor : public QgsDockWidget
Expand Down

0 comments on commit 0e2995c

Please sign in to comment.