mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-12-21 19:27:15 +00:00
Some minor changes in the instance model and control
This commit is contained in:
@@ -143,12 +143,9 @@ QVariant InstanceModel::data ( const QModelIndex& index, int role ) const
|
||||
if (!index.isValid())
|
||||
return QVariant();
|
||||
|
||||
if (role != Qt::DisplayRole)
|
||||
return QVariant();
|
||||
|
||||
InstanceModelItem *item = static_cast<InstanceModelItem*>(index.internalPointer());
|
||||
|
||||
return item->data(index.column());
|
||||
return item->data(role);
|
||||
}
|
||||
|
||||
QModelIndex InstanceModel::index ( int row, int column, const QModelIndex& parent ) const
|
||||
|
||||
Reference in New Issue
Block a user