summaryrefslogtreecommitdiff
path: root/AudioManagerDaemon/DataBaseHandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'AudioManagerDaemon/DataBaseHandler.cpp')
-rw-r--r--AudioManagerDaemon/DataBaseHandler.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/AudioManagerDaemon/DataBaseHandler.cpp b/AudioManagerDaemon/DataBaseHandler.cpp
index 788e835..e16b1c5 100644
--- a/AudioManagerDaemon/DataBaseHandler.cpp
+++ b/AudioManagerDaemon/DataBaseHandler.cpp
@@ -847,17 +847,18 @@ QList<source_t> DataBaseHandler::getSourceIDsForSinkID(sink_t sink) {
QList<ConnectionType> DataBaseHandler::getListAllMainConnections() {
QList<ConnectionType> connectionList;
QSqlQuery query;
- QString command = "SELECT Sink_ID, Source_ID, route FROM " + QString(
+ QString command = "SELECT Sink_ID, Source_ID FROM " + QString(
MAIN_TABLE) + ";";
if (query.exec(command) != true) {
} else {
- if (query.next()) {
+ while (query.next()) {
ConnectionType temp;
temp.Sink_ID = query.value(0).toInt();
temp.Source_ID = query.value(1).toInt();
connectionList.append(temp);
+ DLT_LOG(AudioManager,DLT_LOG_INFO, DLT_STRING("Added Connection"), DLT_INT(temp.Sink_ID),DLT_INT(temp.Source_ID));
}
}
return connectionList;