mirror of
https://github.com/fralx/LimeReport.git
synced 2024-12-24 08:34:38 +03:00
unnecessary check has been removed
This commit is contained in:
parent
af1a8d8265
commit
aa3f9d80d3
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user