When no track is present, use the special name "No track" is used. This fixes issue...
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Wed, 30 Aug 2017 18:19:18 +0000 (20:19 +0200)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Wed, 30 Aug 2017 18:19:18 +0000 (20:19 +0200)
src/sql/sqlengine.cpp

index c959e8d1551cc52d6a5388a90c1e3c2fad068b83..536ed6364e97df5ff9ff5f6395aac20595bc1a4e 100644 (file)
@@ -179,6 +179,7 @@ void SqlEngine::addEventToDB(QHash<QString,QString> &aEvent) {
     Track track;
     int trackId;
     QString trackName = aEvent["track"];
+    if (trackName.isEmpty()) trackName = tr("No track");
     try
     {
         track = Track::retrieveByName(conferenceId, trackName);