Bug 84885 - double click in month view: new appointment doesn't use default appointment time
Summary: double click in month view: new appointment doesn't use default appointment time
Status: RESOLVED FIXED
Alias: None
Product: korganizer
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Cornelius Schumacher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-10 20:15 UTC by Daniel Frein
Modified: 2006-02-01 19:20 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Frein 2004-07-10 20:15:18 UTC
Version:            (using KDE KDE 3.2.91)
Installed from:    Compiled From Sources
Compiler:          gcc (GCC) 3.3.3 (Debian 20040401) 
OS:                Linux

If I create a new appointment by double-clicking in the month view the "default appointment time" (and duration) is not used - contrary to the creation via right-clicking on the month-view of the calendar and choosing "new event".
Comment 1 Bram Schoenmakers 2004-07-14 16:06:23 UTC
For some reason, there's always going something wrong when marking bugs as complete via CVS. :(

CVS commit by bram: 

Fix for bug 84885: double click in month view: new appointment doesn't
use default appointment time.

CCMAIL:84885-done@mail.kde.org


  M +6 -2      calendarview.cpp   1.277


--- kdepim/korganizer/calendarview.cpp  #1.276:1.277
@@ -866,6 +866,10 @@ void CalendarView::newEvent(QDateTime fh
 void CalendarView::newEvent(QDate dt)
 {
-  newEvent(QDateTime(dt, QTime(0,0,0)),
-           QDateTime(dt, QTime(0,0,0)), true);
+  QTime startTime = KOPrefs::instance()->mStartTime.time();
+  QTime defaultDuration( KOPrefs::instance()->mDefaultDuration.time() );
+  QTime endTime = startTime.addSecs( defaultDuration.hour()*3600 +
+     defaultDuration.minute()*60 + defaultDuration.second() );
+  newEvent(QDateTime(dt, startTime),
+           QDateTime(dt, endTime), true);
 }
Comment 2 O Kullmann 2006-02-01 19:16:56 UTC
I'm not 100% sure whether the above bug is exactly what I mean (I'm
also not so sure about the use of the notions):

With the version which came with Suse 9.1 I could double-click into a
time slot of the "calendar" (the main window in the default mode),
and a dialogue window would open to enter a new event *at this time*
where I clicked; and the default duration of this event was one hour,
which was alright. Now doing the same with the new version, the default
duration is 15m, which is a nuisance (I nearly never have such short
events, and even if I had, the entry in the calendar is just too small
to be useful). In the settings I find a default *appointment* duration,
which might be the same or not as an "event"; anyway, setting this duration
to whatever I want doesn't change anything, except when clicking to this
new-event-symbol in the task list --- but then it uses *both* default time
and duration, and thus doesn't help me, since I want only the default duration, and not the default time.
Comment 3 O Kullmann 2006-02-01 19:20:06 UTC
Just an addition to my above comment (I entered the bug webpage
via the "submit bug button" of KOrganizer, and thus assumed that
my settings would be transferred):

I'm using KOrganzier 3.4.2 (Using KDE 3.4.2 Level "b" Suse 10.0).