author | cniehaus <cniehaus> | 2003-01-04 14:08:38 (UTC) |
---|---|---|
committer | cniehaus <cniehaus> | 2003-01-04 14:08:38 (UTC) |
commit | 851c182383c34fd4925677713bb5f6fd603c86a0 (patch) (unidiff) | |
tree | 1f1ed41aa225cff23eb64bd0b1631d3f307975aa | |
parent | 69f08fb67ec7e92c4b3c573d6a1ce374aaa97cee (diff) | |
download | opie-851c182383c34fd4925677713bb5f6fd603c86a0.zip opie-851c182383c34fd4925677713bb5f6fd603c86a0.tar.gz opie-851c182383c34fd4925677713bb5f6fd603c86a0.tar.bz2 |
one typo ;)
several bugfixes
-rw-r--r-- | noncore/apps/odict/configdlg.cpp | 9 | ||||
-rw-r--r-- | noncore/apps/odict/odict.cpp | 8 |
2 files changed, 14 insertions, 3 deletions
diff --git a/noncore/apps/odict/configdlg.cpp b/noncore/apps/odict/configdlg.cpp index 33296e3..89bc6f6 100644 --- a/noncore/apps/odict/configdlg.cpp +++ b/noncore/apps/odict/configdlg.cpp | |||
@@ -92,5 +92,5 @@ void ConfigDlg::slotChangeMethod() | |||
92 | { | 92 | { |
93 | dlg.saveItem(); | 93 | dlg.saveItem(); |
94 | QListViewItem *item = new QListViewItem( list ); | 94 | QListViewItem *item = list->selectedItem(); |
95 | item->setText( 0 , dlg.nameLE->text() ); | 95 | item->setText( 0 , dlg.nameLE->text() ); |
96 | } | 96 | } |
@@ -103,5 +103,12 @@ void ConfigDlg::slotDeleteMethod() | |||
103 | { | 103 | { |
104 | if ( list->selectedItem() ) | 104 | if ( list->selectedItem() ) |
105 | { | ||
106 | Config cfg ( "odict" ); | ||
107 | cfg.setGroup( "Method_"+list->selectedItem()->text(0) ); | ||
108 | cfg.clearGroup(); | ||
109 | //FIXME: this only removes the entries but not the group itself | ||
110 | |||
105 | list->takeItem( list->selectedItem() ); | 111 | list->takeItem( list->selectedItem() ); |
112 | } | ||
106 | else qDebug("no item selected"); | 113 | else qDebug("no item selected"); |
107 | } | 114 | } |
diff --git a/noncore/apps/odict/odict.cpp b/noncore/apps/odict/odict.cpp index 1fbdb85..e0104eb 100644 --- a/noncore/apps/odict/odict.cpp +++ b/noncore/apps/odict/odict.cpp | |||
@@ -70,4 +70,5 @@ void ODict::loadConfig() | |||
70 | 70 | ||
71 | QStringList groupListCfg = cfg.groupList().grep( "Method_" ); | 71 | QStringList groupListCfg = cfg.groupList().grep( "Method_" ); |
72 | query_co->clear(); | ||
72 | for ( QStringList::Iterator it = groupListCfg.begin() ; it != groupListCfg.end() ; ++it ) | 73 | for ( QStringList::Iterator it = groupListCfg.begin() ; it != groupListCfg.end() ; ++it ) |
73 | { | 74 | { |
@@ -90,5 +91,5 @@ void ODict::saveConfig() | |||
90 | void ODict::slotDisplayAbout() | 91 | void ODict::slotDisplayAbout() |
91 | { | 92 | { |
92 | QMessageBox::about( this, tr( "About ODict" ), tr( "OPIE-Dictionary ODict \n (c) 2002, 2003 Carsten Niehaus \n cniehaus@handhelds.org \n Version 20030103" ) ); | 93 | QMessageBox::about( this, tr( "About ODict" ), tr( "OPIE-Dictionary ODict \n (c) 2002, 2003 Carsten Niehaus \n cniehaus@handhelds.org \n Version 20030104" ) ); |
93 | } | 94 | } |
94 | 95 | ||
@@ -98,5 +99,5 @@ void ODict::slotStartQuery() | |||
98 | qDebug("opening dict >%s< for >%s<", activated_name.latin1(),querystring.latin1()); | 99 | qDebug("opening dict >%s< for >%s<", activated_name.latin1(),querystring.latin1()); |
99 | if (querystring.isEmpty()){ | 100 | if (querystring.isEmpty()){ |
100 | qWarning("empty querysting"); | 101 | qWarning("empty querystring"); |
101 | return; | 102 | return; |
102 | } | 103 | } |
@@ -117,5 +118,8 @@ void ODict::slotSettings() | |||
117 | ConfigDlg dlg( this, "Config" , true); | 118 | ConfigDlg dlg( this, "Config" , true); |
118 | if ( dlg.exec() == QDialog::Accepted ) | 119 | if ( dlg.exec() == QDialog::Accepted ) |
120 | { | ||
119 | dlg.writeEntries(); | 121 | dlg.writeEntries(); |
122 | loadConfig(); | ||
123 | } | ||
120 | else qDebug( "abgebrochen" ); | 124 | else qDebug( "abgebrochen" ); |
121 | } | 125 | } |