'conflict' dialog now contains list of events in conflict with given eventId
[toast/confclerk.git] / src / gui / conflictsdialog.cpp
index 070dc9d..674375e 100644 (file)
@@ -1,12 +1,14 @@
 #include "conflictsdialog.h"
 
-ConflictsDialog::ConflictsDialog(QWidget *aParent)
+ConflictsDialog::ConflictsDialog(int aEventId, QWidget *aParent)
     : QDialog(aParent)
 {
     setupUi(this);
     connect(container, SIGNAL(eventHasChanged(int)), this, SIGNAL(eventHasChanged(int)));
     connect(container, SIGNAL(eventHasChanged(int)), container, SLOT(updateTreeViewModel(int)));
 
+    container->setEventId(aEventId);
+
     int confId = Conference::activeConference();
     QDate startDate = Conference::getById(confId).start();
     QDate endDate = Conference::getById(confId).end();