From aff270316219558bd00cbcc3ffc275213080fcd3 Mon Sep 17 00:00:00 2001 From: umopapisdn Date: Sun, 23 Mar 2003 22:48:20 +0000 Subject: Bugfix: (bug #0000735) New events added in WeekListView are no longer defaulting to 01-01-1970. --- (limited to 'core/pim') 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 ) start = end = d; start.setTime( QTime( 10, 0 ) ); end.setTime( QTime( 12, 0 ) ); - } + } else if ( views->visibleWidget() == weekLstView ) { + QDate d = weekLstView->date(); + start = end = d; + start.setTime( QTime( 10, 0 ) ); + end.setTime( QTime( 12, 0 ) ); + } slotNewEntry(start, end, str); } void DateBook::slotNewEntry(const QDateTime &start, const QDateTime &end, const QString &str) { -- cgit v0.9.0.2