Skip to content

Commit

Permalink
Fix cannot deactivate customization widget catcher (fix #9732)
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jun 14, 2016
1 parent 6568da6 commit e765719
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/qgscustomization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e765719

Please sign in to comment.