From ad138f72572be447b1d479e9b0f91877b1819b9c Mon Sep 17 00:00:00 2001 From: Arin Alex Date: Mon, 14 Mar 2016 16:21:49 +0300 Subject: [PATCH] Demo has been fixed --- demo/r1/mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/demo/r1/mainwindow.cpp b/demo/r1/mainwindow.cpp index 9452387..2903089 100644 --- a/demo/r1/mainwindow.cpp +++ b/demo/r1/mainwindow.cpp @@ -179,8 +179,8 @@ void MainWindow::slotChangePos(const LimeReport::CallbackInfo::ChangePosType &ty { QSqlQuery* ds = m_customers; if (!ds) return; - if (type == LimeReport::CallbackInfo::First) {result = ds->first(); m_nextCount=0;} - else {result = ds->next(); m_nextCount++;} + if (type == LimeReport::CallbackInfo::First) {result = ds->first();} + else {result = ds->next();} if (result){ m_orders->bindValue(":id",m_customers->value(m_customers->record().indexOf("CustomerID"))); m_orders->exec();