mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-05 11:24:15 +00:00
Fix broken behavior of "priority by shown file order"
Closes #15421. PR #15423.
This commit is contained in:
parent
6a6268c068
commit
7a6edcdddb
@ -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…
x
Reference in New Issue
Block a user