From aa3f9d80d3e3ff8293ad36a9c0094348dd195cdf Mon Sep 17 00:00:00 2001 From: Arin Alexander Date: Tue, 5 Apr 2016 20:05:14 +0400 Subject: [PATCH] unnecessary check has been removed --- limereport/lrdatadesignintf.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/limereport/lrdatadesignintf.cpp b/limereport/lrdatadesignintf.cpp index 332da20..1f28a8e 100644 --- a/limereport/lrdatadesignintf.cpp +++ b/limereport/lrdatadesignintf.cpp @@ -612,13 +612,13 @@ void CallbackDatasource::first(){ m_currentRow = 0; m_eof=checkIfEmpty(); bool result=false; - if (m_rowCount == -1){ - QVariant rowCount; - CallbackInfo info; - info.dataType = CallbackInfo::RowCount; - emit getCallbackData(info,rowCount); - if (rowCount.isValid()) m_rowCount = rowCount.toInt(); - } + + QVariant rowCount; + CallbackInfo info; + info.dataType = CallbackInfo::RowCount; + emit getCallbackData(info,rowCount); + if (rowCount.isValid()) m_rowCount = rowCount.toInt(); + emit changePos(CallbackInfo::First,result); if (m_rowCount>0) m_eof = false; else m_eof = !result;