summaryrefslogtreecommitdiff
authorharlekin <harlekin>2004-06-20 13:36:16 (UTC)
committer harlekin <harlekin>2004-06-20 13:36:16 (UTC)
commit2055cb9e96b27f95720240a2035ade27cb7bc098 (patch) (side-by-side diff)
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
@@ -61,49 +61,51 @@ ODict::ODict(QWidget* parent, const char* name, WFlags fl ) : QMainWindow(parent
setCentralWidget( vbox );
}
void ODict::loadConfig()
{
/*
* the name of the last used dictionary
*/
QString lastname;
Config cfg ( "odict" );
cfg.setGroup( "generalsettings" );
casesens = cfg.readEntry( "casesens" ).toInt();
QString lastDict = cfg.readEntry( "lastdict" );
int i = 0, e = 0;
QStringList groupListCfg = cfg.groupList().grep( "Method_" );
query_co->clear();
for ( QStringList::Iterator it = groupListCfg.begin() ; it != groupListCfg.end() ; ++it )
{
QString name;
cfg.setGroup( *it );
name = cfg.readEntry( "Name" );
+ if ( name != QString::null ) {
query_co->insertItem( name );
+ }
/*
* this check is to look up what dictionary has been used the
* last time
*/
if ( lastDict == name )
{
e = i;
lastname = name;
}
i++;
}
/*
* now set the two names of the dictionary and the correct QComboBox-Entry
*/
lookupLanguageNames( lastname );
ding->loadDict( lastname );
ding->loadValues();
query_co->setCurrentItem( e );
top_name->setText( top_name_content );
bottom_name->setText( bottom_name_content );
}