From 1f72e7a4e55a70cc4f0e7a34b41a3909e6709a4e Mon Sep 17 00:00:00 2001 From: Konrad Rosenbaum Date: Sun, 20 Dec 2015 15:46:07 +0100 Subject: [PATCH] fix display of cloned event --- src/dialogs/eventedit.cpp | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/src/dialogs/eventedit.cpp b/src/dialogs/eventedit.cpp index 1ab4b9e..b09e85c 100644 --- a/src/dialogs/eventedit.cpp +++ b/src/dialogs/eventedit.cpp @@ -64,9 +64,16 @@ MEventEditor::MEventEditor(QWidget*pw, OpenMode mode, qint64 id) case OpenMode::Auto: if(id>=0)break; //else fallthru - case OpenMode::Create: + case OpenMode::Create:{ event.setid(Nullable()); + auto prices=event.price(); + for(auto&price:prices){ + price.setamounttickets(0); + price.setamountticketsblock(0); + } + event.setprice(prices); break; + } default:break; } -- 1.7.2.5