From 5bdad323a9b70758b1076cdef1622d71325d2e52 Mon Sep 17 00:00:00 2001 From: christian linke Date: Tue, 27 Nov 2012 15:10:27 +0100 Subject: * [Bug 10] - feedback from review . fixed removeSourceDB like suggested in ticket Signed-off-by: christian linke --- AudioManagerDaemon/src/CAmDatabaseHandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'AudioManagerDaemon/src') diff --git a/AudioManagerDaemon/src/CAmDatabaseHandler.cpp b/AudioManagerDaemon/src/CAmDatabaseHandler.cpp index 2110780..2e2fa7e 100644 --- a/AudioManagerDaemon/src/CAmDatabaseHandler.cpp +++ b/AudioManagerDaemon/src/CAmDatabaseHandler.cpp @@ -1288,12 +1288,12 @@ am_Error_e CAmDatabaseHandler::removeSourceDB(const am_sourceID_t sourceID) return (E_DATABASE_ERROR); if (!sqQuery(command1)) return (E_DATABASE_ERROR); - if (!sqQuery(command2)) + if (!sqQuery(command3)) return (E_DATABASE_ERROR); if(visible) { - if (!sqQuery(command3)) + if (!sqQuery(command2)) return (E_DATABASE_ERROR); } logInfo("DatabaseHandler::removeSourceDB removed:", sourceID); -- cgit v1.2.1