GuiSymbols: handle the case of an invalid data

The docs do not guarantee that the index must be valid
This commit is contained in:
Guillaume Munch 2016-12-03 23:35:14 +01:00
parent 633d5e2c10
commit 03a0e983bc

View File

@ -218,6 +218,9 @@ public:
QVariant data(QModelIndex const & index, int role) const
{
if (!index.isValid())
return QVariant();
static QString const strCharacter = qt_("Character: ");
static QString const strCodePoint = qt_("Code Point: ");