Changeset 358:5775afaab7ed in SMSSender


Ignore:
Timestamp:
Mar 31, 2014 10:46:52 PM (5 years ago)
Author:
Sämy Zehnder <saemy.zehnder@…>
Branch:
separation-frontend-backend
Message:
  • Fixes crash when saving a new account.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • frontend/persistence/pers_accountmanager.cpp

    r316 r358  
    147147                   "  WHERE (name = :accountName); ");
    148148        query.bindValue(":accountName", account->name());
    149         if (!query.next()) {
     149        if (!query.exec() || !query.next()) {
    150150            EException(QObject::tr("The account could not have been written to the database."))
    151151                    .addDebugInfo("sql-error", query.lastError().text())
Note: See TracChangeset for help on using the changeset viewer.