summaryrefslogtreecommitdiff
authorharlekin <harlekin>2004-06-20 13:36:16 (UTC)
committer harlekin <harlekin>2004-06-20 13:36:16 (UTC)
commit2055cb9e96b27f95720240a2035ade27cb7bc098 (patch) (unidiff)
tree0a360cce374c111a31662f3dfb7fbda9e007c857
parent9f4c73fe369f2a8052323c2b1ae21f3ce133b9fd (diff)
downloadopie-2055cb9e96b27f95720240a2035ade27cb7bc098.zip
opie-2055cb9e96b27f95720240a2035ade27cb7bc098.tar.gz
opie-2055cb9e96b27f95720240a2035ade27cb7bc098.tar.bz2
another fix for not showing previously deleted entries
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/odict/odict.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/apps/odict/odict.cpp b/noncore/apps/odict/odict.cpp
index 4c99964..497de36 100644
--- a/noncore/apps/odict/odict.cpp
+++ b/noncore/apps/odict/odict.cpp
@@ -73,25 +73,27 @@ void ODict::loadConfig()
73 casesens = cfg.readEntry( "casesens" ).toInt(); 73 casesens = cfg.readEntry( "casesens" ).toInt();
74 74
75 QString lastDict = cfg.readEntry( "lastdict" ); 75 QString lastDict = cfg.readEntry( "lastdict" );
76 int i = 0, e = 0; 76 int i = 0, e = 0;
77 77
78 QStringList groupListCfg = cfg.groupList().grep( "Method_" ); 78 QStringList groupListCfg = cfg.groupList().grep( "Method_" );
79 query_co->clear(); 79 query_co->clear();
80 for ( QStringList::Iterator it = groupListCfg.begin() ; it != groupListCfg.end() ; ++it ) 80 for ( QStringList::Iterator it = groupListCfg.begin() ; it != groupListCfg.end() ; ++it )
81 { 81 {
82 QString name; 82 QString name;
83 cfg.setGroup( *it ); 83 cfg.setGroup( *it );
84 name = cfg.readEntry( "Name" ); 84 name = cfg.readEntry( "Name" );
85 if ( name != QString::null ) {
85 query_co->insertItem( name ); 86 query_co->insertItem( name );
87 }
86 88
87 /* 89 /*
88 * this check is to look up what dictionary has been used the 90 * this check is to look up what dictionary has been used the
89 * last time 91 * last time
90 */ 92 */
91 if ( lastDict == name ) 93 if ( lastDict == name )
92 { 94 {
93 e = i; 95 e = i;
94 lastname = name; 96 lastname = name;
95 } 97 }
96 i++; 98 i++;
97 } 99 }