Fixed bug: Arguments for calling ConfClerk in an alarm event were not built correctly.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Wed, 17 Oct 2012 21:09:42 +0000 (21:09 +0000)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Wed, 17 Oct 2012 21:09:42 +0000 (21:09 +0000)
src/alarm/alarm.cpp

index 5390ddd..7e9ccb6 100644 (file)
@@ -57,7 +57,7 @@ int Alarm::addAlarm(int conferenceId, int eventId, QString eventTitle, const QDa
     alarmAction = alarm_event_add_actions(alarmEvent, 1);
     alarm_action_set_label(alarmAction, "ConfClerk");
 
-    QString command = QFileInfo(*qApp->argv()).absoluteFilePath() + QString(" %1 %2").arg(conferenceIdeventId);
+    QString command = QFileInfo(*qApp->argv()).absoluteFilePath() + QString(" %1 %2").arg(conferenceId).arg(eventId);
     qDebug() << "Setting alarm: " << command;
     alarm_action_set_exec_command(alarmAction, command.toLocal8Bit().data());
     alarmAction->flags |= ALARM_ACTION_TYPE_EXEC;