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 c959e8d..536ed63 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);