Commit 6e7b088e authored by Cyrille Berger's avatar Cyrille Berger

display the name and not the id

svn path=/trunk/koffice/; revision=714085
parent cbe8244d
......@@ -72,7 +72,7 @@ QVariant KoGenericRegistryModel<T>::data(const QModelIndex &index, int role) con
}
if(role == Qt::DisplayRole or role == Qt::EditRole)
{
return QVariant(m_registry->keys()[index.row()]);
return QVariant( get(index)->name() );
}
return QVariant();
}
......
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