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:
parent
666f6678f3
commit
d80990fd50
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user