From e76571959431b5c9b96862578f8485dbfd203521 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Tue, 14 Jun 2016 13:17:23 +1000 Subject: [PATCH] Fix cannot deactivate customization widget catcher (fix #9732) --- src/app/qgscustomization.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/qgscustomization.cpp b/src/app/qgscustomization.cpp index 27d954ec356..4bb4e488f7e 100644 --- a/src/app/qgscustomization.cpp +++ b/src/app/qgscustomization.cpp @@ -381,10 +381,11 @@ bool QgsCustomizationDialog::switchWidget( QWidget *widget, QMouseEvent *e ) Q_UNUSED( e ); if ( !actionCatch->isChecked() ) return false; + QString path = widgetPath( widget ); QgsDebugMsg( "path = " + path ); - if ( path.startsWith( "/QgsCustomizationDialogBase" ) ) + if ( path.contains( "/QgsCustomizationDialogBase" ) ) { // do not allow modification of this dialog return false;