diff options
-rw-r--r-- | ui/qt/profile_dialog.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/qt/profile_dialog.cpp b/ui/qt/profile_dialog.cpp index 341a13e035..13715fc371 100644 --- a/ui/qt/profile_dialog.cpp +++ b/ui/qt/profile_dialog.cpp @@ -220,11 +220,12 @@ void ProfileDialog::on_deleteToolButton_clicked() if (profile->is_global || profile->status == PROF_STAT_DEFAULT) { return; } - remove_from_profile_list(fl_entry); delete item; // Select the default pd_ui_->profileTreeWidget->setCurrentItem(pd_ui_->profileTreeWidget->topLevelItem(0)); + + remove_from_profile_list(fl_entry); } } |