The (custom) entry was added to the combobox at each profile loading

See issue #5092
This commit is contained in:
Hombre
2018-12-13 01:56:36 +01:00
parent d47a54fb3d
commit 71a5521b66
3 changed files with 11 additions and 0 deletions

View File

@@ -167,6 +167,7 @@ Gtk::TreeIter ProfilePanel::getLastSavedRow()
Gtk::TreeIter ProfilePanel::addCustomRow()
{
if(customPSE) {
profiles->deleteRow(customPSE);
delete customPSE;
customPSE = nullptr;
}
@@ -179,6 +180,7 @@ Gtk::TreeIter ProfilePanel::addCustomRow()
Gtk::TreeIter ProfilePanel::addLastSavedRow()
{
if(lastSavedPSE) {
profiles->deleteRow(lastSavedPSE);
delete lastSavedPSE;
lastSavedPSE = nullptr;
}