Fix cannot deactivate customization widget catcher (fix #9732)

This commit is contained in:
Nyall Dawson 2016-06-14 13:17:23 +10:00
parent 6568da6ce0
commit e765719594

View File

@ -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;