From 4fad0b73ae2940099bbb6f20bb94ed1f29e6d05b Mon Sep 17 00:00:00 2001 From: josef Date: Mon, 07 Oct 2002 11:19:00 +0000 Subject: - when editing, replace edited profile instead of inserting new one - now save nearly all settings (not loaded yet) --- (limited to 'noncore/apps/opie-console/configdialog.cpp') diff --git a/noncore/apps/opie-console/configdialog.cpp b/noncore/apps/opie-console/configdialog.cpp index 655d649..ee1ffb4 100644 --- a/noncore/apps/opie-console/configdialog.cpp +++ b/noncore/apps/opie-console/configdialog.cpp @@ -79,9 +79,12 @@ void ConfigDialog::slotEdit() { if(ret == QDialog::Accepted) { - // if(listView->current()) delete lstView->current(); ... + if(lstView->currentItem()) delete lstView->currentItem(); + // use dlg.terminal()! - new ConfigListItem(lstView, Profile(dlg.prof_name(), dlg.prof_type(), Profile::White, Profile::Black, Profile::VT102)); + Profile p = dlg.profile(); + + new ConfigListItem(lstView, p); } } -- cgit v0.9.0.2