delete already existing values before inserting new

svn path=/trunk/KDE/kdelibs/; revision=1188939
This commit is contained in:
Marco Martin 2010-10-23 12:06:21 +00:00
parent 72110136bc
commit aa08ed2808
2 changed files with 3 additions and 2 deletions

View File

@ -68,7 +68,8 @@ void StorageJob::start()
if (operationName() == "save") {
QSqlQuery query(m_db);
query.prepare("delete from "+m_clientName+" where key = :id");
query.prepare("delete from "+m_clientName+" where valueGroup=:valueGroup and id = :id");
query.bindValue(":valueGroup", params["valueGroup"].toString());
query.bindValue(":id", params["key"].toString());
query.exec();

View File

@ -88,7 +88,7 @@ public:
break;
case QEvent::PaletteChange:
customPalette = true;
// customPalette = true;
break;
default: