delete already existing values before inserting new
svn path=/trunk/KDE/kdelibs/; revision=1188939
This commit is contained in:
parent
72110136bc
commit
aa08ed2808
@ -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();
|
||||
|
||||
|
@ -88,7 +88,7 @@ public:
|
||||
break;
|
||||
|
||||
case QEvent::PaletteChange:
|
||||
customPalette = true;
|
||||
// customPalette = true;
|
||||
break;
|
||||
|
||||
default:
|
||||
|
Loading…
x
Reference in New Issue
Block a user