Bug 369570 - calendar selector for new events defaults to last selected calendar
Summary: calendar selector for new events defaults to last selected calendar
Status: RESOLVED FIXED
Alias: None
Product: korganizer
Classification: Applications
Component: general (show other bugs)
Version: 5.2.3
Platform: Debian unstable Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-30 12:56 UTC by Marc Mezzarobba
Modified: 2020-03-05 14:40 UTC (History)
3 users (show)

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 Marc Mezzarobba 2016-09-30 12:56:17 UTC
With older versions of korganizer, the dropdown list used to choose in which calendar to put a new event used to default to the calendar marked as “Default calendar” in the Calendar Manager. With 5.2.3, there is still an option called “Use as default calendar” in the Calendar Manager, but it seems to have no effect. Instead, the dropdown list seems to default to the item selected last time it was opened.
Comment 1 Kevin Funk 2019-09-13 13:31:44 UTC
I just also noticed this issue.

Does the "Use as default calendar" have any effect at all right now?
Comment 2 Laurent Montel 2019-09-14 07:31:57 UTC
It seems that there is a bug here.
I will investigate soon.
Comment 3 Allen Winter 2020-02-22 14:27:13 UTC
This is fixed for how I think things should work

1) remember the last calendar used 
2) if there is no last calendar (or the last calendar is invalid for some reason) fallback to the default calendar

I create a fair number of events and remembering the last calendar used is a time saver.
Comment 4 Marc Mezzarobba 2020-02-22 15:54:43 UTC
Fair enough I suppose. There is one major downside to remembering the default calendar though: it makes it very easy to put private events in a public calendar. It would be great if one could have an “active” calendar instead (a natural choice would be the one currently selected in the calendar manager) and new entries would go there by default instead.
Comment 5 Allen Winter 2020-02-23 18:09:28 UTC
good point ..

so forget about last used and always set the initial calendar to the default calendar.

@Kevin: what do you think?
Comment 6 Allen Winter 2020-03-05 14:40:43 UTC
Git commit a5908c1f1175a6ed9816ff1dbe5654f7c183f0cf by Allen Winter.
Committed on 05/03/2020 at 14:37.
Pushed by winterz into branch 'release/19.12'.

incidencedialog.cpp - default collection for initial calendar

forget about using the last selected calendar and always start
a new incidence with the default calendar.

this gives us consistent behavior and reduces the chances of
creating incidences in the wrong calendar.

Differential Revision: https://phabricator.kde.org/D27762

M  +3    -11   src/incidencedialog.cpp

https://commits.kde.org/incidenceeditor/a5908c1f1175a6ed9816ff1dbe5654f7c183f0cf