From 7c39357c281bbc8684f9cfb3c5f7b4a960c02f74 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Fri, 16 Nov 2012 07:15:33 +0100 Subject: [PATCH] * Source's scanningFinished method now expects an updateGUI bool. --- src/libtomahawk/Source.cpp | 6 ++++-- src/libtomahawk/Source.h | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/libtomahawk/Source.cpp b/src/libtomahawk/Source.cpp index 61b53516e..4a5b79585 100644 --- a/src/libtomahawk/Source.cpp +++ b/src/libtomahawk/Source.cpp @@ -295,7 +295,7 @@ Source::scanningProgress( unsigned int files ) void -Source::scanningFinished() +Source::scanningFinished( bool updateGUI ) { m_textStatus = QString(); @@ -306,7 +306,9 @@ Source::scanningFinished() } emit stateChanged(); - emit synced(); + + if ( updateGUI ) + emit synced(); } diff --git a/src/libtomahawk/Source.h b/src/libtomahawk/Source.h index 0adcc9712..b7fbf7aba 100644 --- a/src/libtomahawk/Source.h +++ b/src/libtomahawk/Source.h @@ -80,7 +80,7 @@ public: void setControlConnection( ControlConnection* cc ); void scanningProgress( unsigned int files ); - void scanningFinished(); + void scanningFinished( bool updateGUI ); unsigned int trackCount() const;