mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-24 06:30:45 +00:00
Fix Profile delete not removing row properly
This commit is contained in:
parent
7601bdbc98
commit
e375f49268
@ -266,7 +266,8 @@ void ProfileSelect::deleteProfile()
|
|||||||
QMessageBox::information(this, STR_MessageBox_Information, QString(tr("Profile '%1' was succesfully deleted").arg(name)),QMessageBox::Ok);
|
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;
|
delete p_profile;
|
||||||
p_profile = nullptr;
|
p_profile = nullptr;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user