Skip to content

Commit

Permalink
Remove feature request storage
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Nov 14, 2024
1 parent 74c5089 commit 72e215b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion src/gui/qgsrelationeditorwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,6 @@ void QgsRelationEditorWidget::updateUiSingleEdit()
updateButtons();
}

mFeatureRequest = request;
}

void QgsRelationEditorWidget::updateUiMultiEdit()
Expand Down
3 changes: 0 additions & 3 deletions src/gui/qgsrelationeditorwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,6 @@ class GUI_EXPORT QgsRelationEditorWidget : public QgsAbstractRelationEditorWidge
bool mAllowAddChildFeatureWithNoGeometry = true;
QString mFilterExpression;

// Mainly used for testing purposes
QgsFeatureRequest mFeatureRequest;

QList<QTreeWidgetItem *> mMultiEditPreviousSelectedItems;
QgsFeatureIds mMultiEdit1NJustAddedIds;

Expand Down
2 changes: 1 addition & 1 deletion tests/src/gui/testqgsrelationeditorwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ void TestQgsRelationEditorWidget::testFeatureRequest()
relationEditorWidget.setEditorContext( context );

relationEditorWidget.updateUiSingleEdit();
QCOMPARE( relationEditorWidget.mFeatureRequest.filterExpression()->expression(), QStringLiteral( "\"pk\" IN (10,11)" ) );
QCOMPARE( relationEditorWidget.mDualView->masterModel()->request().filterExpression()->expression(), QStringLiteral( "\"pk\" IN (10,11)" ) );
}

void TestQgsRelationEditorWidget::testUpdateUi()
Expand Down

0 comments on commit 72e215b

Please sign in to comment.