Skip to content
Permalink
Browse files

Fix another small leak

  • Loading branch information
nyalldawson committed Aug 31, 2017
1 parent e84543d commit 42b3e0bb103a85eba505eab404649cd7c741cb8f
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/app/qgisapp.cpp
@@ -2278,14 +2278,13 @@ void QgisApp::refreshProfileMenu()
QString activeName = profile->name();
mConfigMenu->setTitle( tr( "&User Profiles" ) );

QActionGroup *profileGroup = new QActionGroup( this );
QActionGroup *profileGroup = new QActionGroup( mConfigMenu );
profileGroup->setExclusive( true );

Q_FOREACH ( const QString &name, userProfileManager()->allProfiles() )
{
profile = userProfileManager()->profileForName( name );
// Qt 5.5 has no parent default as nullptr
QAction *action = new QAction( profile->icon(), profile->alias(), nullptr );
QAction *action = new QAction( profile->icon(), profile->alias(), mConfigMenu );
action->setToolTip( profile->folder() );
action->setCheckable( true );
profileGroup->addAction( action );

0 comments on commit 42b3e0b

Please sign in to comment.
You can’t perform that action at this time.