0
0
mirror of https://github.com/fralx/LimeReport.git synced 2024-12-25 00:54:39 +03:00

unnecessary check has been removed

This commit is contained in:
Arin Alexander 2016-04-05 20:05:14 +04:00
parent af1a8d8265
commit aa3f9d80d3

View File

@ -612,13 +612,13 @@ void CallbackDatasource::first(){
m_currentRow = 0; m_currentRow = 0;
m_eof=checkIfEmpty(); m_eof=checkIfEmpty();
bool result=false; bool result=false;
if (m_rowCount == -1){
QVariant rowCount; QVariant rowCount;
CallbackInfo info; CallbackInfo info;
info.dataType = CallbackInfo::RowCount; info.dataType = CallbackInfo::RowCount;
emit getCallbackData(info,rowCount); emit getCallbackData(info,rowCount);
if (rowCount.isValid()) m_rowCount = rowCount.toInt(); if (rowCount.isValid()) m_rowCount = rowCount.toInt();
}
emit changePos(CallbackInfo::First,result); emit changePos(CallbackInfo::First,result);
if (m_rowCount>0) m_eof = false; if (m_rowCount>0) m_eof = false;
else m_eof = !result; else m_eof = !result;