From 989fb92d4ab883ba924005dfb2b0588a0b73b6b2 Mon Sep 17 00:00:00 2001 From: nowrep Date: Sat, 19 Mar 2011 14:05:37 +0100 Subject: [PATCH] Fixed comparing of active encoding --- src/app/qupzilla.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/qupzilla.cpp b/src/app/qupzilla.cpp index da20bb533..4a38203b1 100644 --- a/src/app/qupzilla.cpp +++ b/src/app/qupzilla.cpp @@ -410,7 +410,7 @@ void QupZilla::aboutToShowEncodingMenu() action->setData(name); action->setCheckable(true); connect(action, SIGNAL(triggered()), this, SLOT(changeEncoding())); - if (activeCodec.contains(name, Qt::CaseInsensitive)) + if (activeCodec.compare(name, Qt::CaseInsensitive) == 0) action->setChecked(true); if (name.startsWith("ISO"))