1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

Qt5: Fixed crash when choosing encoding of page

This commit is contained in:
nowrep 2012-12-22 12:03:54 +01:00
parent 666f6678f3
commit d80990fd50

View File

@ -1010,7 +1010,8 @@ void QupZilla::aboutToShowEncodingMenu()
const QString &activeCodec = mApp->webSettings()->defaultTextEncoding();
foreach(const QByteArray & name, available) {
if (QTextCodec::codecForName(name)->aliases().contains(name)) {
QTextCodec* codec = QTextCodec::codecForName(name);
if (codec && codec->aliases().contains(name)) {
continue;
}