From: U-main\enar Date: Tue, 26 Jul 2011 13:02:36 +0000 (+0300) Subject: Fixed invalid string. X-Git-Url: https://vaikene.ee/gitweb/overview.html?a=commitdiff_plain;h=37ff4c7dcaf312c1fd359bc824ca84de53411101;p=evaf Fixed invalid string. --- 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;