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 | |||
@@ -72,14 +72,16 @@ void DingWidget::parseInfo( QStringList &lines, QString &top, QString &bottom ) | |||
72 | current = *it; | 72 | current = *it; |
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 | ||
85 | //thats it, the lists are rendered. Lets put them in one string | 87 | //thats it, the lists are rendered. Lets put them in one string |