From: Konrad Rosenbaum Date: Sun, 20 Dec 2015 14:46:07 +0000 (+0100) Subject: fix display of cloned event X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=1f72e7a4e55a70cc4f0e7a34b41a3909e6709a4e;p=web%2Fkonrad%2Fsmoke.git fix display of cloned event --- 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; }