summaryrefslogtreecommitdiff
path: root/noncore/apps/odict/configdlg.cpp
Unidiff
Diffstat (limited to 'noncore/apps/odict/configdlg.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/odict/configdlg.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/apps/odict/configdlg.cpp b/noncore/apps/odict/configdlg.cpp
index 89bc6f6..eba7dec 100644
--- a/noncore/apps/odict/configdlg.cpp
+++ b/noncore/apps/odict/configdlg.cpp
@@ -76,6 +76,7 @@ void ConfigDlg::slotNewMethod()
76 SearchMethodDlg dlg( this, "SearchMethodDlg", true ); 76 SearchMethodDlg dlg( this, "SearchMethodDlg", true );
77 if ( dlg.exec() == QDialog::Accepted ) 77 if ( dlg.exec() == QDialog::Accepted )
78 { 78 {
79 //if ( !dlg.nameLE->text() ) return; //XXX
79 dlg.saveItem(); 80 dlg.saveItem();
80 QListViewItem *item = new QListViewItem( list ); 81 QListViewItem *item = new QListViewItem( list );
81 item->setText( 0 , dlg.nameLE->text() ); 82 item->setText( 0 , dlg.nameLE->text() );
@@ -90,6 +91,7 @@ void ConfigDlg::slotChangeMethod()
90 SearchMethodDlg dlg( this, "SearchMethodDlg", true, list->selectedItem()->text( 0 ) ); 91 SearchMethodDlg dlg( this, "SearchMethodDlg", true, list->selectedItem()->text( 0 ) );
91 if ( dlg.exec() == QDialog::Accepted ) 92 if ( dlg.exec() == QDialog::Accepted )
92 { 93 {
94 //if ( !dlg.nameLE->text() ) return; //XXX geht vielleich nicht
93 dlg.saveItem(); 95 dlg.saveItem();
94 QListViewItem *item = list->selectedItem(); 96 QListViewItem *item = list->selectedItem();
95 item->setText( 0 , dlg.nameLE->text() ); 97 item->setText( 0 , dlg.nameLE->text() );