From 37ff4c7dcaf312c1fd359bc824ca84de53411101 Mon Sep 17 00:00:00 2001 From: "U-main\\enar" Date: Tue, 26 Jul 2011 16:02:36 +0300 Subject: [PATCH 1/1] Fixed invalid string. --- src/apps/PswGen/Storage/module.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/PswGen/Storage/module.cpp b/src/apps/PswGen/Storage/module.cpp index b0fd6af..ab591b7 100644 --- a/src/apps/PswGen/Storage/module.cpp +++ b/src/apps/PswGen/Storage/module.cpp @@ -160,7 +160,7 @@ bool StorageImpl::save(QString const & name, QExplicitlySharedDataPointerlength()).arg(int(data->flags())))) { + if (!q.exec(QString("INSERT INTO data (name, length, flags) VALUES (\'%1\', %2, %3);").arg(name).arg(data->length()).arg(int(data->flags())))) { QSqlError err = mDb.lastError(); EVAF_ERROR("Failed to insert \'%s\' : %s", qPrintable(name), qPrintable(err.text())); return false; -- 2.47.0