author | cniehaus <cniehaus> | 2003-05-10 20:58:31 (UTC) |
---|---|---|
committer | cniehaus <cniehaus> | 2003-05-10 20:58:31 (UTC) |
commit | cd5ea84b4061c1d3b8401252fd2c36efade02c95 (patch) (unidiff) | |
tree | c97d2f5ed8a1fed0c2aec3aafdf621e996719663 /noncore/apps/odict/odict.cpp | |
parent | 1bff948326aa752c3f4aceac4083717f8c2066e8 (diff) | |
download | opie-cd5ea84b4061c1d3b8401252fd2c36efade02c95.zip opie-cd5ea84b4061c1d3b8401252fd2c36efade02c95.tar.gz opie-cd5ea84b4061c1d3b8401252fd2c36efade02c95.tar.bz2 |
fix a stupid bug
Diffstat (limited to 'noncore/apps/odict/odict.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/odict/odict.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/noncore/apps/odict/odict.cpp b/noncore/apps/odict/odict.cpp index c1de6ac..2028701 100644 --- a/noncore/apps/odict/odict.cpp +++ b/noncore/apps/odict/odict.cpp | |||
@@ -58,13 +58,12 @@ ODict::ODict() : QMainWindow() | |||
58 | browser_top = new QTextBrowser( vbox ); | 58 | browser_top = new QTextBrowser( vbox ); |
59 | bottom_name = new QLabel( vbox ); | 59 | bottom_name = new QLabel( vbox ); |
60 | bottom_name->setAlignment( AlignHCenter ); | 60 | bottom_name->setAlignment( AlignHCenter ); |
61 | browser_bottom = new QTextBrowser( vbox ); | 61 | browser_bottom = new QTextBrowser( vbox ); |
62 | 62 | ||
63 | ding = new DingWidget(); | 63 | ding = new DingWidget(); |
64 | ding->loadValues(); | ||
65 | 64 | ||
66 | loadConfig(); | 65 | loadConfig(); |
67 | setCentralWidget( vbox ); | 66 | setCentralWidget( vbox ); |
68 | } | 67 | } |
69 | 68 | ||
70 | void ODict::loadConfig() | 69 | void ODict::loadConfig() |
@@ -105,12 +104,13 @@ void ODict::loadConfig() | |||
105 | /* | 104 | /* |
106 | * now set the two names of the dictionary and the correct QComboBox-Entry | 105 | * now set the two names of the dictionary and the correct QComboBox-Entry |
107 | */ | 106 | */ |
108 | 107 | ||
109 | lookupLanguageNames( lastname ); | 108 | lookupLanguageNames( lastname ); |
110 | ding->loadDict( lastname ); | 109 | ding->loadDict( lastname ); |
110 | ding->loadValues(); | ||
111 | 111 | ||
112 | query_co->setCurrentItem( e ); | 112 | query_co->setCurrentItem( e ); |
113 | top_name->setText( top_name_content ); | 113 | top_name->setText( top_name_content ); |
114 | bottom_name->setText( bottom_name_content ); | 114 | bottom_name->setText( bottom_name_content ); |
115 | } | 115 | } |
116 | 116 | ||
@@ -196,16 +196,12 @@ void ODict::slotSetParameter( int count ) | |||
196 | } | 196 | } |
197 | 197 | ||
198 | void ODict::slotMethodChanged( const QString& methodnumber ) | 198 | void ODict::slotMethodChanged( const QString& methodnumber ) |
199 | { | 199 | { |
200 | activated_name = methodnumber; | 200 | activated_name = methodnumber; |
201 | 201 | ||
202 | qDebug( "activated_name in slotMethodChanged() ist:" ); | ||
203 | qDebug( activated_name ); | ||
204 | qDebug( ding->loadedDict() ); | ||
205 | |||
206 | if ( activated_name != ding->loadedDict() ) | 202 | if ( activated_name != ding->loadedDict() ) |
207 | { | 203 | { |
208 | ding->loadDict(activated_name); | 204 | ding->loadDict(activated_name); |
209 | 205 | ||
210 | lookupLanguageNames( activated_name ); | 206 | lookupLanguageNames( activated_name ); |
211 | top_name->setText( top_name_content ); | 207 | top_name->setText( top_name_content ); |