]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Reset progress bar text when directory loading starts
authorKai Uwe Broulik <kde@privat.broulik.de>
Mon, 2 Sep 2019 07:12:48 +0000 (09:12 +0200)
committerKai Uwe Broulik <kde@privat.broulik.de>
Mon, 2 Sep 2019 07:12:48 +0000 (09:12 +0200)
Dolphin shows a different text for whether it is loading the directory or currently sorting its contents.
However, when entering a folder that causes sort criteria to change (e.g. because of different view properties in that folder),
the status bar text is changed to "Sorting..." while it is still actually loading the folder.
When loading a directory starts, reset any status bar text to ensure "Loading..." is displayed in this case.

Differential Revision: >https://phabricator.kde.org/D23459

src/dolphinviewcontainer.cpp

index 5d1d257e5e4166f4e3a22dbbe95d4fa40cc3c9ed..585610550573c4c1962edf0276fc76ffdcae57b3 100644 (file)
@@ -566,6 +566,7 @@ void DolphinViewContainer::slotDirectoryLoadingStarted()
         // Trigger an undetermined progress indication. The progress
         // information in percent will be triggered by the percent() signal
         // of the directory lister later.
+        m_statusBar->setProgressText(QString());
         updateDirectoryLoadingProgress(-1);
     }
 }