From 4f8fbc633afc17ea9b6b365ca2253a7420f24f51 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Thu, 30 Jan 2025 13:53:46 +1000 Subject: [PATCH] Update src/gui/vector/qgsvectorlayerproperties.cpp --- src/gui/vector/qgsvectorlayerproperties.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/vector/qgsvectorlayerproperties.cpp b/src/gui/vector/qgsvectorlayerproperties.cpp index 03d443228cca..87deb7059336 100644 --- a/src/gui/vector/qgsvectorlayerproperties.cpp +++ b/src/gui/vector/qgsvectorlayerproperties.cpp @@ -1489,7 +1489,7 @@ void QgsVectorLayerProperties::mButtonRemoveJoin_clicked() // if current item is a child item, we should use its parent to be able to remove join if ( currentJoinItem && currentJoinItem->parent() ) { - currentJoinItem = mJoinTreeWidget->currentItem()->parent(); + currentJoinItem = currentJoinItem->parent(); } if ( !mLayer || !currentJoinItem )