]> Some of my projects - localmylist.git/commitdiff
Fix clearPendingRequestDataErrors.
authorAPTX <marek321@gmail.com>
Mon, 3 Jun 2013 13:52:57 +0000 (15:52 +0200)
committerAPTX <marek321@gmail.com>
Mon, 3 Jun 2013 13:52:57 +0000 (15:52 +0200)
clearPendingRequestDataErrors increments data_error_count so it should start with 0, not 1.

localmylist/database.cpp

index 33b3710b88d669ed0b29b499b2013ed74bed2f0e..b06aaaed06bb3e064de1d70e24db1581f926fa9e 100644 (file)
@@ -1407,7 +1407,7 @@ bool Database::clearPendingRequestDataErrors()
 
        RaiiTransaction t(this);
 
-       int i = 1;
+       int i = 0;
        for (const auto &step : steps)
        {
                q.bindValue(":dataErrorCount", i);