1
0
Fork 0
mirror of https://github.com/HenkKalkwater/harbour-sailfin.git synced 2026-05-19 10:35:16 +00:00

WIP: HttpLoader seems to work, Model still borked

This commit is contained in:
Chris Josten 2021-03-28 04:00:00 +02:00
parent e421adf733
commit 729e343661
1412 changed files with 13967 additions and 33794 deletions

View file

@ -45,7 +45,7 @@ void BaseModelLoader::componentComplete() {
}
void BaseModelLoader::autoReloadIfNeeded() {
if (m_autoReload && m_apiClient != nullptr) {
if (m_autoReload && canReload()) {
emit reloadWanted();
}
}
@ -73,6 +73,10 @@ void BaseModelLoader::setAutoReload(bool newAutoReload) {
}
}
bool BaseModelLoader::canReload() const {
return m_apiClient != nullptr && (!m_needsAuthentication || m_apiClient->authenticated());
}
void BaseApiModel::reload() {
qWarning() << " BaseApiModel slot called instead of overloaded method";
}