mirror of
https://github.com/YACReader/yacreader
synced 2025-05-25 18:00:46 -04:00
Use the right data index for getting the rating
This commit is contained in:
parent
31971c2348
commit
89d16b620a
@ -8,6 +8,7 @@ Version counting is based on semantic versioning (Major.Feature.Patch)
|
||||
|
||||
### YACReaderLibrary
|
||||
* Improve flexibility of the open comic in third party app setting so more complex commands can be used. e.g. `open -a "/Applications/My Reader.app" "{comic_file_path}"`.
|
||||
* Fix setting the comic rating in the table view.
|
||||
|
||||
## 9.15.0
|
||||
|
||||
|
@ -285,7 +285,7 @@ QWidget *YACReaderRatingDelegate::createEditor(QWidget *parent,
|
||||
void YACReaderRatingDelegate::setEditorData(QWidget *editor,
|
||||
const QModelIndex &index) const
|
||||
{
|
||||
int rating = ((ComicItem *)index.internalPointer())->data(11).toInt();
|
||||
int rating = ((ComicItem *)index.internalPointer())->data(ComicModel::Rating).toInt();
|
||||
|
||||
StarRating starRating(rating);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user