Skip to content

Commit

Permalink
Fix cannot deactivate customization widget catcher (fix #9732)
Browse files Browse the repository at this point in the history
(cherry-picked from e765719)
  • Loading branch information
nyalldawson committed Jul 1, 2016
1 parent dc961d5 commit 563c470
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/qgscustomization.cpp
Expand Up @@ -388,10 +388,11 @@ bool QgsCustomizationDialog::switchWidget( QWidget *widget, QMouseEvent *e )
QgsDebugMsg( "Entered" );
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;
Expand Down

0 comments on commit 563c470

Please sign in to comment.