From e5ebac764a5ab7d1cd50b515753eb0c3b40ca2ad Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Thu, 14 Apr 2022 16:52:36 -0400 Subject: [PATCH] Prevent deletion of the initial default profile --- src/settingswindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);