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
......@@ -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;
}
......
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