From 7b9da8d941fdccd13884a30109c99b8146df878b Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Mon, 30 Jul 2007 18:43:00 +0000 Subject: [PATCH] - Fixed [Bug 129286] Priority is not saved while using the context menu --- src/properties_imp.cpp | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/src/properties_imp.cpp b/src/properties_imp.cpp index 8358bdc20..75cad02e7 100644 --- a/src/properties_imp.cpp +++ b/src/properties_imp.cpp @@ -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; + } } } }