projects
/
web/konrad/smoke.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
fde9f2c
)
fix display of cloned event
author
Konrad Rosenbaum
<konrad@silmor.de>
Sun, 20 Dec 2015 14:46:07 +0000 (15:46 +0100)
committer
Konrad Rosenbaum
<konrad@silmor.de>
Sun, 20 Dec 2015 14:46:07 +0000 (15:46 +0100)
src/dialogs/eventedit.cpp
patch
|
blob
|
history
diff --git
a/src/dialogs/eventedit.cpp
b/src/dialogs/eventedit.cpp
index
1ab4b9e
..
b09e85c
100644
(file)
--- 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<qint64>());
+ auto prices=event.price();
+ for(auto&price:prices){
+ price.setamounttickets(0);
+ price.setamountticketsblock(0);
+ }
+ event.setprice(prices);
break;
+ }
default:break;
}