[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [Amarok] 5a7958b: Merge two "if( removed )" blocks.
From:       Sven Krohlas <sven () getamarok ! com>
Date:       2010-03-28 14:24:02
Message-ID: 201003281424.o2SEO2Tf011938 () kore ! kollide ! net
[Download RAW message or body]

commit 5a7958b0a789f4b371cae7b9b5c3dfb34d1594b7
Author: Sven Krohlas <sven@getamarok.com>
Date:   Sun Mar 28 15:24:36 2010 +0200

    Merge two "if( removed )" blocks.

diff --git a/src/collection/sqlcollection/SqlCollectionLocation.cpp \
b/src/collection/sqlcollection/SqlCollectionLocation.cpp index 4344451..c6003c0 \
                100644
--- a/src/collection/sqlcollection/SqlCollectionLocation.cpp
+++ b/src/collection/sqlcollection/SqlCollectionLocation.cpp
@@ -145,9 +145,7 @@ SqlCollectionLocation::remove( const Meta::TrackPtr &track )
                 QString query = QString( "DELETE FROM tracks where url = %1;" ).arg( \
id );  m_collection->sqlStorage()->query( query );
             }
-        }
-        if( removed )
-        {
+
             QFileInfo file( m_originalUrls[track].path() );
             QDir dir = file.dir();
             const QStringList collectionFolders = \
m_collection->mountPointManager()->collectionFolders();


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic