mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-01-12 18:24:58 +08:00
- Fixed [Bug 129286] Priority is not saved while using the context menu
This commit is contained in:
parent
05a7ba4e38
commit
7b9da8d941
@ -225,7 +225,10 @@ void properties::ignoreSelection(){
|
||||
QModelIndex index;
|
||||
foreach(index, selectedIndexes){
|
||||
if(index.column() == PRIORITY){
|
||||
PropListModel->setData(index, QVariant(IGNORED));
|
||||
if(PropListModel->data(index) != QVariant(IGNORED)){
|
||||
PropListModel->setData(index, QVariant(IGNORED));
|
||||
changedFilteredfiles = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -235,7 +238,10 @@ void properties::normalSelection(){
|
||||
QModelIndex index;
|
||||
foreach(index, selectedIndexes){
|
||||
if(index.column() == PRIORITY){
|
||||
PropListModel->setData(index, QVariant(NORMAL));
|
||||
if(PropListModel->data(index) != QVariant(NORMAL)){
|
||||
PropListModel->setData(index, QVariant(NORMAL));
|
||||
changedFilteredfiles = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -245,7 +251,10 @@ void properties::highSelection(){
|
||||
QModelIndex index;
|
||||
foreach(index, selectedIndexes){
|
||||
if(index.column() == PRIORITY){
|
||||
PropListModel->setData(index, QVariant(HIGH));
|
||||
if(PropListModel->data(index) != QVariant(HIGH)){
|
||||
PropListModel->setData(index, QVariant(HIGH));
|
||||
changedFilteredfiles = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -255,7 +264,10 @@ void properties::maximumSelection(){
|
||||
QModelIndex index;
|
||||
foreach(index, selectedIndexes){
|
||||
if(index.column() == PRIORITY){
|
||||
PropListModel->setData(index, QVariant(MAXIMUM));
|
||||
if(PropListModel->data(index) != QVariant(MAXIMUM)){
|
||||
PropListModel->setData(index, QVariant(MAXIMUM));
|
||||
changedFilteredfiles = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user