From c52a6634c2df362417f14504e27c2ce569d456c9 Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Sat, 5 Jul 2014 22:27:34 +0100 Subject: [PATCH] Check if album is already loaded before reloading it --- src/libtomahawk/AlbumPlaylistInterface.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libtomahawk/AlbumPlaylistInterface.cpp b/src/libtomahawk/AlbumPlaylistInterface.cpp index 6b62cf495..b41d2608e 100644 --- a/src/libtomahawk/AlbumPlaylistInterface.cpp +++ b/src/libtomahawk/AlbumPlaylistInterface.cpp @@ -237,7 +237,8 @@ AlbumPlaylistInterface::infoSystemFinished( const QString& infoId ) disconnect( Tomahawk::InfoSystem::InfoSystem::instance(), SIGNAL( finished( QString ) ), this, SLOT( infoSystemFinished( QString ) ) ); - if ( m_queries.isEmpty() && m_mode == Mixed ) + // Add !m_finished check to not endlessly reload on an empty album. + if ( m_queries.isEmpty() && m_mode == Mixed && !m_finished ) { if ( m_collection.isNull() ) //we do a dbcmd directly, for the SuperCollection I guess? {