Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 24, 2021
1 parent f75abec commit 8dbaee7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/qgscustomization.cpp
Expand Up @@ -823,7 +823,7 @@ void QgsCustomization::updateMainWindow( QMenu *toolBarMenu, QMenu *panelMenu )
if ( !visible )
{
mw->removeToolBar( tb );
tb->setParent( NULL );
tb->setParent( nullptr );
// remove also from menu, because toolbars removed here, switched on later from menu don't work correctly
toolBarMenu->removeAction( tb->toggleViewAction() );
}
Expand Down Expand Up @@ -881,7 +881,7 @@ void QgsCustomization::updateMainWindow( QMenu *toolBarMenu, QMenu *panelMenu )
if ( !visible )
{
mw->removeDockWidget( dw );
dw->setParent( NULL );
dw->setParent( nullptr );
// remove also from menu, because dock removed here, switched on later from menu don't work correctly
panelMenu->removeAction( dw->toggleViewAction() );
}
Expand Down

0 comments on commit 8dbaee7

Please sign in to comment.