Demo has been fixed

This commit is contained in:
Arin Alex 2016-03-14 16:21:49 +03:00
parent afa3613542
commit ad138f7257

View File

@ -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();