Skip to content

Commit

Permalink
Fix profile checked state (#32506)
Browse files Browse the repository at this point in the history
  • Loading branch information
YoannQDQ authored and nyalldawson committed Apr 24, 2023
1 parent ca6fa95 commit db00e21
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/app/qgisapp.cpp
Expand Up @@ -3393,9 +3393,16 @@ void QgisApp::refreshProfileMenu()
}
else
{
connect( action, &QAction::triggered, this, [this, name]()
connect( action, &QAction::triggered, this, [this, name, activeName]()
{
// Launch a new instance of QGIS with the selected profile
userProfileManager()->loadUserProfile( name );

// We want the actions to be checkable so the current profile is shown
// as checked, but we don't want to check the clicked action, so we
// check again the action linked to the active profile
findChild<QAction *>( "mActionProfile_" + activeName )->setChecked( true );

} );
}
}
Expand Down

0 comments on commit db00e21

Please sign in to comment.