Skip to content

Commit

Permalink
Use profile icon in combobox
Browse files Browse the repository at this point in the history
  • Loading branch information
YoannQDQ authored and nyalldawson committed Apr 24, 2023
1 parent 3c5f120 commit ab3388e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/options/qgsuserprofilesettingsdialog.cpp
Expand Up @@ -46,7 +46,11 @@ QgsUserProfileSettingsDialog::QgsUserProfileSettingsDialog( QWidget *parent )

// Fill combobox with profiles
mDefaultProfileComboBox->clear();
mDefaultProfileComboBox->addItems( manager->allProfiles() );
for ( auto profile : manager->allProfiles() )
{
QIcon icon = manager->profileForName( profile )->icon();
mDefaultProfileComboBox->addItem( icon, profile );
}
mDefaultProfileComboBox->setCurrentText( manager->defaultProfileName() );
}

Expand Down

0 comments on commit ab3388e

Please sign in to comment.