aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormontellese <montellese@xbmc.org>2015-08-31 16:07:21 +0200
committermontellese <montellese@xbmc.org>2015-08-31 16:07:21 +0200
commit53ff4288577e7123d5650a7f7944ae6eb2676ab6 (patch)
treef5188fe060ac8b16e0ea2003529224c190cb6c4a
parent3b55876dd913062fb68d584c5e08025e17e3d4c3 (diff)
CVideoLibraryRefreshingJob: always close the progress dialog after scraping
-rw-r--r--xbmc/video/jobs/VideoLibraryRefreshingJob.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/xbmc/video/jobs/VideoLibraryRefreshingJob.cpp b/xbmc/video/jobs/VideoLibraryRefreshingJob.cpp
index 66f25dc3dc..382a223dc5 100644
--- a/xbmc/video/jobs/VideoLibraryRefreshingJob.cpp
+++ b/xbmc/video/jobs/VideoLibraryRefreshingJob.cpp
@@ -142,10 +142,12 @@ bool CVideoLibraryRefreshingJob::Work(CVideoDatabase &db)
// try to find a matching item
MOVIELIST itemResultList;
int result = infoDownloader.FindMovie(itemTitle, itemResultList, GetProgressDialog());
+
+ // close the progress dialog
+ MarkFinished();
+
if (result > 0)
{
- MarkFinished();
-
// there are multiple matches for the item
if (!itemResultList.empty())
{