diff options
| author | Kai Uwe Broulik <[email protected]> | 2021-01-15 17:51:33 +0100 |
|---|---|---|
| committer | Kai Uwe Broulik <[email protected]> | 2021-01-17 13:32:56 +0000 |
| commit | 2e79e21c3f4da5183b516e0088f2137c4f27ceff (patch) | |
| tree | 5e59eefdfbc9e470b2cd6fcff4a1081408b328c1 /src/views/dolphinview.h | |
| parent | 6945a540046cbe5497bdd08790942ebd0d82d483 (diff) | |
[DolphinView] Fix "Folder is empty" label showing prematurely
Don't show the label while still loading. Since there is no property in
`KDirLister` a dedicated `m_loading` is added for this purpose.
Also, I removed the explicit update on `urlChanged` as the view
probably won't change until the lister starts loading.
BUG: 430085
Diffstat (limited to 'src/views/dolphinview.h')
| -rw-r--r-- | src/views/dolphinview.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/views/dolphinview.h b/src/views/dolphinview.h index 5dd65eb54..d0285da85 100644 --- a/src/views/dolphinview.h +++ b/src/views/dolphinview.h @@ -690,6 +690,12 @@ private slots: void slotDirectoryLoadingCompleted(); /** + * Invoked when the file item model indicates that the loading of a directory has + * been canceled. + */ + void slotDirectoryLoadingCanceled(); + + /** * Is invoked when items of KFileItemModel have been changed. */ void slotItemsChanged(); @@ -816,6 +822,7 @@ private: bool m_isFolderWritable; bool m_dragging; // True if a dragging is done. Required to be able to decide whether a // tooltip may be shown when hovering an item. + bool m_loading; QUrl m_url; QString m_viewPropertiesContext; |
