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:
parent
e421adf733
commit
729e343661
1412 changed files with 13967 additions and 33794 deletions
|
|
@ -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";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue