All pastes #174330 Raw Edit

andrewt512

public text v1 · immutable
·published 2006-09-17 20:37 UTC
rendered paste body
Index: src/collectiondb.cpp
===================================================================
--- src/collectiondb.cpp        (revision 585707)
+++ src/collectiondb.cpp        (revision 585709)
@@ -7176,12 +7176,8 @@
     if ( m_query.isEmpty() )
     {
         linkTables( m_linkTables );
-        if ( !m_showAll && !m_tables.contains("tags") )
-        {
-            m_tables += ",tags";
-        }
         m_query = "SELECT " + m_values + " FROM " + m_tables + ' ' + m_join + " WHERE " + CollectionDB::instance()->boolT() + ' ' + m_where;
-        if ( !m_showAll )
+        if ( !m_showAll && ( m_linkTables & tabSong ) )     //Only for things on mounted devices, unless you use optShowAll
         {
             IdList list = MountPointManager::instance()->getMountedDeviceIds();
             QString deviceIds = "";