1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-21 09:42:10 +02:00

Fixed comparing of active encoding

This commit is contained in:
nowrep 2011-03-19 14:05:37 +01:00
parent 7a7422318a
commit 989fb92d4a

View File

@ -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"))