------------------------------------------------------------------------
+r431 | philipp | 2007-03-06 23:09:55 +0100 (Tue, 06 Mar 2007) | 2 lines
+Changed paths:
+ M /teleschorsch/trunk/main.cpp
+
+Default date is today for time >= 12:00 o'clock and yesterday otherwise.
+
+------------------------------------------------------------------------
+r430 | gregoa | 2007-03-04 18:40:45 +0100 (Sun, 04 Mar 2007) | 1 line
+Changed paths:
+ M /teleschorsch/trunk/teleschorsch.1
+
+puh. groff (in man pages)
+------------------------------------------------------------------------
r429 | gregoa | 2007-03-04 18:12:20 +0100 (Sun, 04 Mar 2007) | 1 line
Changed paths:
M /teleschorsch/trunk/makedist
#include <QFile>
#include <QProcess>
#include <QMessageBox>
+#include <QDateTime>
#include "main.h"
#include "options.h"
// Fill in channels
updateLwChannels();
+
+ // Default date
+ QDateTime dateTime = QDateTime::currentDateTime(); // set the default date to today if it is past midday
+ if (dateTime.time().hour() < 12) dateTime = dateTime.addDays(-1);
+ calDate->setSelectedDate(dateTime.date());
}