summaryrefslogtreecommitdiff
path: root/core/pim/datebook/datebook.cpp
authorumopapisdn <umopapisdn>2003-03-23 22:48:20 (UTC)
committer umopapisdn <umopapisdn>2003-03-23 22:48:20 (UTC)
commitaff270316219558bd00cbcc3ffc275213080fcd3 (patch) (unidiff)
tree00db2515fbf81a44dda904dc9b4b2e769b3fb49b /core/pim/datebook/datebook.cpp
parent90772042f0d726149093675cede488676a94562b (diff)
downloadopie-aff270316219558bd00cbcc3ffc275213080fcd3.zip
opie-aff270316219558bd00cbcc3ffc275213080fcd3.tar.gz
opie-aff270316219558bd00cbcc3ffc275213080fcd3.tar.bz2
Bugfix: (bug #0000735) New events added in WeekListView are no longer defaulting to 01-01-1970.
Diffstat (limited to 'core/pim/datebook/datebook.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/datebook/datebook.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/pim/datebook/datebook.cpp b/core/pim/datebook/datebook.cpp
index 7dcf156..db2058b 100644
--- a/core/pim/datebook/datebook.cpp
+++ b/core/pim/datebook/datebook.cpp
@@ -808,7 +808,12 @@ void DateBook::slotNewEventFromKey( const QString &str )
808 start = end = d; 808 start = end = d;
809 start.setTime( QTime( 10, 0 ) ); 809 start.setTime( QTime( 10, 0 ) );
810 end.setTime( QTime( 12, 0 ) ); 810 end.setTime( QTime( 12, 0 ) );
811 } 811 } else if ( views->visibleWidget() == weekLstView ) {
812 QDate d = weekLstView->date();
813 start = end = d;
814 start.setTime( QTime( 10, 0 ) );
815 end.setTime( QTime( 12, 0 ) );
816 }
812 slotNewEntry(start, end, str); 817 slotNewEntry(start, end, str);
813} 818}
814void DateBook::slotNewEntry(const QDateTime &start, const QDateTime &end, const QString &str) { 819void DateBook::slotNewEntry(const QDateTime &start, const QDateTime &end, const QString &str) {