mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-21 04:07:46 +00:00
Prevent deletion of the initial default profile
This commit is contained in:
parent
c907ed11d8
commit
e5ebac764a
1 changed files with 1 additions and 1 deletions
|
@ -458,7 +458,7 @@ void SettingsWindow::reloadControls() {
|
||||||
showNewsList->setChecked(core.appSettings.showNewsList);
|
showNewsList->setChecked(core.appSettings.showNewsList);
|
||||||
|
|
||||||
// deleting the main profile is unsupported behavior
|
// deleting the main profile is unsupported behavior
|
||||||
deleteProfileButton->setEnabled(core.profileList().size() > 1);
|
deleteProfileButton->setEnabled(profileWidget->currentRow() != 0);
|
||||||
|
|
||||||
ProfileSettings& profile = core.getProfile(profileWidget->currentRow());
|
ProfileSettings& profile = core.getProfile(profileWidget->currentRow());
|
||||||
nameEdit->setText(profile.name);
|
nameEdit->setText(profile.name);
|
||||||
|
|
Loading…
Add table
Reference in a new issue