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
@@ -73,12 +73,13 @@ void ConfigDlg::writeEntries()
73 73
74void ConfigDlg::slotNewMethod() 74void ConfigDlg::slotNewMethod()
75{ 75{
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() );
82 } 83 }
83 else qDebug( "SearchMethodDlg abgebrochen" ); 84 else qDebug( "SearchMethodDlg abgebrochen" );
84} 85}
@@ -87,12 +88,13 @@ void ConfigDlg::slotChangeMethod()
87{ 88{
88 if ( list->selectedItem() ) 89 if ( list->selectedItem() )
89 { 90 {
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() );
96 } 98 }
97 else qDebug( "SearchMethodDlg abgebrochen" ); 99 else qDebug( "SearchMethodDlg abgebrochen" );
98 } 100 }