mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-14 02:27:09 -07:00
Fix broken behavior of "priority by shown file order"
Closes #15421. PR #15423.
This commit is contained in:
parent
6a6268c068
commit
7a6edcdddb
1 changed files with 4 additions and 1 deletions
|
@ -639,7 +639,7 @@ void PropertiesWidget::displayFilesListMenu(const QPoint &)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Save changes
|
// Save changes
|
||||||
filteredFilesChanged();
|
this->applyPriorities();
|
||||||
};
|
};
|
||||||
|
|
||||||
QMenu *subMenu = menu->addMenu(tr("Priority"));
|
QMenu *subMenu = menu->addMenu(tr("Priority"));
|
||||||
|
@ -692,6 +692,9 @@ void PropertiesWidget::displayFilesListMenu(const QPoint &)
|
||||||
const QModelIndex &index = selectedRows[i];
|
const QModelIndex &index = selectedRows[i];
|
||||||
m_propListModel->setData(index.sibling(index.row(), PRIORITY)
|
m_propListModel->setData(index.sibling(index.row(), PRIORITY)
|
||||||
, static_cast<int>(priority));
|
, static_cast<int>(priority));
|
||||||
|
|
||||||
|
// Save changes
|
||||||
|
this->applyPriorities();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue