mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-24 04:33:03 +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_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;
|
||||
|
Loading…
Reference in New Issue
Block a user