summaryrefslogtreecommitdiff
path: root/noncore/apps/odict/searchmethoddlg.cpp
Side-by-side diff
Diffstat (limited to 'noncore/apps/odict/searchmethoddlg.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/odict/searchmethoddlg.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/apps/odict/searchmethoddlg.cpp b/noncore/apps/odict/searchmethoddlg.cpp
index fcbdb8a..203c663 100644
--- a/noncore/apps/odict/searchmethoddlg.cpp
+++ b/noncore/apps/odict/searchmethoddlg.cpp
@@ -77,13 +77,13 @@ SearchMethodDlg::SearchMethodDlg(QWidget *parent, const char *name, bool modal,
}
}
void SearchMethodDlg::setupEntries( QString item )
{
Config cfg( "odict" );
- cfg.setGroup( itemName );
+ cfg.setGroup( "Method_"+itemName );
trenner->setText( cfg.readEntry( "Seperator" ) );
lang1->setText( cfg.readEntry( "Lang1" ) );
lang2->setText( cfg.readEntry( "Lang2" ) );
nameLE->setText( itemName );
dictFileLE->setText( cfg.readEntry( "file" ) );
}
@@ -95,13 +95,13 @@ void SearchMethodDlg::slotBrowse()
}
void SearchMethodDlg::saveItem()
{
QString name = nameLE->text();
Config cfg( "odict" );
- cfg.setGroup( name );
+ cfg.setGroup( "Method_"+name );
cfg.writeEntry( "Name", name );
cfg.writeEntry( "Seperator", trenner->text() );
cfg.writeEntry( "Lang1", lang1->text() );
cfg.writeEntry( "Lang2", lang2->text() );
cfg.writeEntry( "file", dictFileLE->text() );
}