Diffstat (limited to 'noncore/apps/opie-console/configdialog.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/configdialog.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
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 @@ -80,7 +80,10 @@ 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); } } |