Skip to content

Commit

Permalink
Fix another small leak
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Aug 31, 2017
1 parent e84543d commit 42b3e0b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 42b3e0b

Please sign in to comment.