mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 21:33:27 -07:00
- Fix file prioritizing in a torrent
This commit is contained in:
parent
240c3508fe
commit
fe8d5a3528
1 changed files with 2 additions and 0 deletions
|
@ -155,6 +155,7 @@ public slots:
|
||||||
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const {
|
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const {
|
||||||
QComboBox *combobox = static_cast<QComboBox*>(editor);
|
QComboBox *combobox = static_cast<QComboBox*>(editor);
|
||||||
int value = combobox->currentIndex();
|
int value = combobox->currentIndex();
|
||||||
|
qDebug("PropListDelegate: setModelData(%d)", value);
|
||||||
switch(value) {
|
switch(value) {
|
||||||
case 1:
|
case 1:
|
||||||
model->setData(index, 2); // HIGH
|
model->setData(index, 2); // HIGH
|
||||||
|
@ -165,6 +166,7 @@ public slots:
|
||||||
default:
|
default:
|
||||||
model->setData(index, 1); // NORMAL
|
model->setData(index, 1); // NORMAL
|
||||||
}
|
}
|
||||||
|
emit filteredFilesChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &/* index */) const {
|
void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &/* index */) const {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue