Browse Source

- Fixed [Bug 129286] Priority is not saved while using the context menu

adaptive-webui-19844
Christophe Dumez 18 years ago
parent
commit
7b9da8d941
  1. 12
      src/properties_imp.cpp

12
src/properties_imp.cpp

@ -225,7 +225,10 @@ void properties::ignoreSelection(){
QModelIndex index; QModelIndex index;
foreach(index, selectedIndexes){ foreach(index, selectedIndexes){
if(index.column() == PRIORITY){ if(index.column() == PRIORITY){
if(PropListModel->data(index) != QVariant(IGNORED)){
PropListModel->setData(index, QVariant(IGNORED)); PropListModel->setData(index, QVariant(IGNORED));
changedFilteredfiles = true;
}
} }
} }
} }
@ -235,7 +238,10 @@ void properties::normalSelection(){
QModelIndex index; QModelIndex index;
foreach(index, selectedIndexes){ foreach(index, selectedIndexes){
if(index.column() == PRIORITY){ if(index.column() == PRIORITY){
if(PropListModel->data(index) != QVariant(NORMAL)){
PropListModel->setData(index, QVariant(NORMAL)); PropListModel->setData(index, QVariant(NORMAL));
changedFilteredfiles = true;
}
} }
} }
} }
@ -245,7 +251,10 @@ void properties::highSelection(){
QModelIndex index; QModelIndex index;
foreach(index, selectedIndexes){ foreach(index, selectedIndexes){
if(index.column() == PRIORITY){ if(index.column() == PRIORITY){
if(PropListModel->data(index) != QVariant(HIGH)){
PropListModel->setData(index, QVariant(HIGH)); PropListModel->setData(index, QVariant(HIGH));
changedFilteredfiles = true;
}
} }
} }
} }
@ -255,7 +264,10 @@ void properties::maximumSelection(){
QModelIndex index; QModelIndex index;
foreach(index, selectedIndexes){ foreach(index, selectedIndexes){
if(index.column() == PRIORITY){ if(index.column() == PRIORITY){
if(PropListModel->data(index) != QVariant(MAXIMUM)){
PropListModel->setData(index, QVariant(MAXIMUM)); PropListModel->setData(index, QVariant(MAXIMUM));
changedFilteredfiles = true;
}
} }
} }
} }

Loading…
Cancel
Save