projects
/
badge
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
eedc9dc
)
fix
author
nicola
<nicola@nicola-x910.(none)>
Wed, 16 Dec 2009 08:46:47 +0000
(09:46 +0100)
committer
nicola
<nicola@nicola-x910.(none)>
Wed, 16 Dec 2009 08:46:47 +0000
(09:46 +0100)
badgewindow.cpp
patch
|
blob
|
history
diff --git
a/badgewindow.cpp
b/badgewindow.cpp
index
884cc48
..
395d1d0
100644
(file)
--- a/
badgewindow.cpp
+++ b/
badgewindow.cpp
@@
-35,7
+35,15
@@
void BadgeWindow::selectedDay(QDate date)
TimeTable tt;
tt.day = date;
TimeTable tt;
tt.day = date;
- data.getTimetable(tt);
+ if (data.getTimetable(tt) == false) {
+ tt.entrance = QTime::currentTime();
+ tt.exit = QTime::currentTime();
+ tt.firstPause = QTime::currentTime();
+ tt.endFirstPause = QTime::currentTime();
+ tt.secondPause = QTime::currentTime();
+ tt.endSecondPause = QTime::currentTime();
+ }
+
tt = day.getTimes(tt);
if (tt.wrong() != TimeTable::WRONG) {
BadgeData data;
tt = day.getTimes(tt);
if (tt.wrong() != TimeTable::WRONG) {
BadgeData data;