Skip to content
Permalink
Browse files
Fix another small leak
  • Loading branch information
nyalldawson committed Aug 31, 2017
1 parent e84543d commit 42b3e0b
Showing 1 changed file with 2 additions and 3 deletions.
@@ -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.