Diffstat (limited to 'noncore/apps/odict/dingwidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/odict/dingwidget.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/noncore/apps/odict/dingwidget.cpp b/noncore/apps/odict/dingwidget.cpp index 6e3179f..61ddbbf 100644 --- a/noncore/apps/odict/dingwidget.cpp +++ b/noncore/apps/odict/dingwidget.cpp | |||
@@ -73,12 +73,14 @@ void DingWidget::parseInfo( QStringList &lines, QString &top, QString &bottom ) | |||
73 | left = current.left( current.find(reg_div) ); | 73 | left = current.left( current.find(reg_div) ); |
74 | right = current.right( current.length() - current.find(reg_div) - 1 ); | 74 | right = current.right( current.length() - current.find(reg_div) - 1 ); |
75 | if ( left.contains( reg_word ) ){ | 75 | if ( left.contains( reg_word ) ) |
76 | { | ||
76 | left.replace( queryword, substitute ); | 77 | left.replace( queryword, substitute ); |
77 | toplist.append( left + " -> " + right); | 78 | toplist.append( left + " -> " + right); |
78 | }else{ | 79 | } |
80 | else | ||
81 | { | ||
79 | right.replace( reg_word, substitute ); | 82 | right.replace( reg_word, substitute ); |
80 | bottomlist.append( right + " -> " + left ); | 83 | bottomlist.append( right + " -> " + left ); |
81 | } | 84 | } |
82 | // .replace( reg_word, substitute ); | ||
83 | } | 85 | } |
84 | 86 | ||