diff --git a/src/settingswindow.cpp b/src/settingswindow.cpp index eebe9db..ab8f3ff 100644 --- a/src/settingswindow.cpp +++ b/src/settingswindow.cpp @@ -458,7 +458,7 @@ void SettingsWindow::reloadControls() { showNewsList->setChecked(core.appSettings.showNewsList); // deleting the main profile is unsupported behavior - deleteProfileButton->setEnabled(core.profileList().size() > 1); + deleteProfileButton->setEnabled(profileWidget->currentRow() != 0); ProfileSettings& profile = core.getProfile(profileWidget->currentRow()); nameEdit->setText(profile.name);