Permalink
Browse files

Fix regression in setEncoding introduced in 9d1c6b9 (#14633)

This corrects the comparison reversion accidentally introduced in commit 9d1c6b9.

Issue: #14632
1 parent 6abff24 commit 928d635349c2ef14b11c4715f2b70b94c78bc3f4 @jowiho jowiho committed with Vitallium Jan 5, 2017
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/encoding.cpp
View
@@ -73,7 +73,7 @@ void Encoding::setEncoding(const QString& encoding)
if (!encoding.isEmpty()) {
QTextCodec* codec = QTextCodec::codecForName(encoding.toLatin1());
- if (!codec) {
+ if (codec) {
m_codec = codec;
}
}

0 comments on commit 928d635

Please sign in to comment.