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

checkIfEmpty has been refactored

This commit is contained in:
Arin Alexander 2016-12-05 23:00:32 +03:00
parent 229e8f529d
commit 54562d80cd

View File

@ -736,11 +736,15 @@ bool CallbackDatasource::checkIfEmpty(){
if (m_rowCount == 0) {
return true;
} else {
QVariant result = true;
QVariant isEmpty = true;
QVariant recordCount = 0;
CallbackInfo info;
info.dataType = CallbackInfo::RowCount;
emit getCallbackData(info, recordCount);
if (recordCount.toInt()>0) return false;
info.dataType = CallbackInfo::IsEmpty;
emit getCallbackData(info,result);
return result.toBool();
emit getCallbackData(info,isEmpty);
return isEmpty.toBool();
}
}