Skip to content

Commit

Permalink
Qt 5.5 has no default value for parent in QAction constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jul 24, 2017
1 parent 1dca9a1 commit dcec6bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2322,8 +2322,8 @@ void QgisApp::refreshProfileMenu()
Q_FOREACH ( const QString &name, userProfileManager()->allProfiles() )
{
profile = userProfileManager()->profileForName( name );
QAction *action = new QAction( profile->icon(), profile->alias() );
action->setToolTip( profile->folder() );
// Qt 5.5 has no parent default as nullptr
QAction *action = new QAction( profile->icon(), profile->alias(), nullptr );
action->setToolTip( profile->folder() );
delete profile;

Expand Down

0 comments on commit dcec6bb

Please sign in to comment.