From e375f49268a8fecd731af316c8ccc83afcdb95e3 Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Wed, 1 Oct 2014 02:42:11 +1000 Subject: [PATCH] Fix Profile delete not removing row properly --- sleepyhead/profileselect.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sleepyhead/profileselect.cpp b/sleepyhead/profileselect.cpp index f3a2b4ba..292f6bc0 100644 --- a/sleepyhead/profileselect.cpp +++ b/sleepyhead/profileselect.cpp @@ -266,7 +266,8 @@ void ProfileSelect::deleteProfile() QMessageBox::information(this, STR_MessageBox_Information, QString(tr("Profile '%1' was succesfully deleted").arg(name)),QMessageBox::Ok); } - model->removeRow(ui->listView->currentIndex().row()); + int row = ui->listView->currentIndex().row(); + proxy->removeRow(row); delete p_profile; p_profile = nullptr; }