@@ -43,6 +43,10 @@ int AppDrawerModel::rowCount(const QModelIndex &parent) const
44QVariant AppDrawerModel::data(const QModelIndex &index, int role) const
44QVariant AppDrawerModel::data(const QModelIndex &index, int role) const
46+ if (!index.isValid() || m_list.count() <= index.row()) {
46 switch (role) {
50 switch (role) {
47 case RoleAppId:
51 case RoleAppId:
48 return m_list.at(index.row())->appId();
52 return m_list.at(index.row())->appId();