Progress bar should not show "Loading thumbnails..." for empty dirs. Issue 1817 on behalf of tomasbuzek

This commit is contained in:
DrSlony
2013-04-08 18:43:01 +01:00
parent 3baeb3fa86
commit cdb71a3945
26 changed files with 34 additions and 28 deletions

View File

@@ -504,7 +504,11 @@ void FileCatalog::dirSelected (const Glib::ustring& dirname, const Glib::ustring
}
_refreshProgressBar ();
filepanel->loadingThumbs(M("PROGRESSBAR_LOADINGTHUMBS"),0);
if (previewsToLoad == 0) {
filepanel->loadingThumbs(M("PROGRESSBAR_NOIMAGES"),0);
} else {
filepanel->loadingThumbs(M("PROGRESSBAR_LOADINGTHUMBS"),0);
}
#ifdef WIN32
wdMonitor = new WinDirMonitor (selectedDirectory, this);