Skip to content
Snippets Groups Projects
Commit ab8647cc authored by ck's avatar ck
Browse files

Maemo: Fix device config model's data() member function.

This subtle bug would lead to weird behavior of QComboBox on Windows.

Reviewed-by: kh1
parent 6bbc732a
No related branches found
No related tags found
No related merge requests found
......@@ -125,7 +125,7 @@ QVariant MaemoDeviceConfigListModel::data(const QModelIndex &index, int role) co
{
if (!index.isValid() || index.row() >= rowCount()
|| role != Qt::DisplayRole)
return QString();
return QVariant();
return MaemoDeviceConfigurations::instance().devConfigs().at(index.row()).name;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment