| 515 | } |
| 516 | |
| 517 | bool CRemoteFileSystemModel::canFetchMore(const QModelIndex &parent) const |
| 518 | { |
| 519 | if(!parent.isValid()) { |
| 520 | qDebug(log) << "canFetchMore: parent is valid" << parent; |
| 521 | return true; |
| 522 | } |
| 523 | CRemoteFileSystem* p = GetRemoteFileSystemFromIndex(parent); |
| 524 | if(p && p->GetState() == CRemoteFileSystem::State::No |
| 525 | && !(p->GetType() & CRemoteFileSystem::TYPE::FILE)) { |
| 526 | qDebug(log) << "canFetchMore:" << parent << p->GetPath() << "true"; |
| 527 | return true; |
| 528 | } |
| 529 | qDebug(log) << Q_FUNC_INFO << parent; |
| 530 | return false; |
| 531 | } |
| 532 | |
| 533 | void CRemoteFileSystemModel::fetchMore(const QModelIndex &parent) |
| 534 | { |