Commit af743267 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix crash

parent 61405b86
......@@ -35,7 +35,7 @@
#include <QCompleter>
#include <QFileSystemModel>
#include <QtCore/QUrl>
#include <QDebug>
// KDE
#include <kdeversion.h>
#include <KCodecAction>
......@@ -563,6 +563,7 @@ void EditProfileDialog::updateKeyBindingsList(bool selectCurrentTranslator)
QStringList translatorNames = keyManager->allTranslators();
foreach(const QString& translatorName, translatorNames) {
const KeyboardTranslator* translator = keyManager->findTranslator(translatorName);
if (!translator) continue;
QStandardItem* item = new QStandardItem(translator->description());
item->setEditable(false);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment