Diffstat (limited to 'noncore/apps/odict/configdlg.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/odict/configdlg.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/noncore/apps/odict/configdlg.cpp b/noncore/apps/odict/configdlg.cpp index 7fa6008..3d98f63 100644 --- a/noncore/apps/odict/configdlg.cpp +++ b/noncore/apps/odict/configdlg.cpp | |||
@@ -51,5 +51,5 @@ ConfigDlg::ConfigDlg(QWidget *parent, const char *name, bool modal) : QDialog(pa | |||
51 | vbox_layout->addWidget( search_tab ); | 51 | vbox_layout->addWidget( search_tab ); |
52 | 52 | ||
53 | QPEApplication::execDialog( this ); | 53 | QPEApplication::showDialog( this ); |
54 | } | 54 | } |
55 | 55 | ||
@@ -98,7 +98,10 @@ void ConfigDlg::loadSearchMethodNames() | |||
98 | for ( QStringList::Iterator it = groupListCfg.begin() ; it != groupListCfg.end() ; ++it ) | 98 | for ( QStringList::Iterator it = groupListCfg.begin() ; it != groupListCfg.end() ; ++it ) |
99 | { | 99 | { |
100 | QListViewItem *item = new QListViewItem( list ); | ||
101 | cfg.setGroup( *it ); | 100 | cfg.setGroup( *it ); |
102 | item->setText( 0 , cfg.readEntry( "Name" ) ); | 101 | QString name = cfg.readEntry( "Name" ); |
102 | if ( name != QString::null ) { | ||
103 | QListViewItem *item = new QListViewItem( list ); | ||
104 | item->setText( 0 , name ); | ||
105 | } | ||
103 | } | 106 | } |
104 | } | 107 | } |