mirror of
https://github.com/YACReader/yacreader
synced 2025-07-14 11:04:25 -04:00
Show the current type as checked in the context menu
This commit is contained in:
@ -1030,6 +1030,12 @@ void ComicModel::setComicsType(QList<QModelIndex> list, FileType type)
|
||||
connectionName = db.connectionName();
|
||||
}
|
||||
QSqlDatabase::removeDatabase(connectionName);
|
||||
|
||||
foreach (QModelIndex mi, list) {
|
||||
_data.value(mi.row())->setData(ComicModel::Type, QVariant::fromValue(type));
|
||||
}
|
||||
|
||||
emit dataChanged(index(list.first().row(), ComicModel::Type), index(list.last().row(), ComicModel::Type), QVector<int>() << TypeRole);
|
||||
}
|
||||
|
||||
qint64 ComicModel::asignNumbers(QList<QModelIndex> list, int startingNumber)
|
||||
|
Reference in New Issue
Block a user