| Summary: | During import of vCard: Message box with either-or-question provides Yes/No buttons | ||
|---|---|---|---|
| Product: | [Applications] korganizer | Reporter: | Gunter Ohrner <mails.bugs.kde.org-2025-1> |
| Component: | import/export | Assignee: | David Faure <faure> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | faure, mails.bugs.kde.org-2025-1, martin, montel |
| Priority: | NOR | ||
| Version First Reported In: | 5.0 | ||
| Target Milestone: | --- | ||
| Platform: | Kubuntu | ||
| OS: | Linux | ||
| Latest Commit: | http://commits.kde.org/eventviews/376da8f1c6d537f387d905ab4466ec6d7a6c8df6 | Version Fixed/Implemented In: | Applications/16.04 |
| Sentry Crash Report: | |||
| Attachments: |
Screenshot showing the confusing dialog.
Correct messagebox for importing iCal/vCal, which appears if kOrganizer is already running. |
||
|
Description
Gunter Ohrner
2016-01-05 07:38:31 UTC
Created attachment 96466 [details]
Screenshot showing the confusing dialog.
Uhm, I'm talking about importing vCal/iCal, not vCard, of course... :-/ I also just noticed that this only happens if kOrganizer is not running when importing the vcs file. If kOrganizer already IS running, the button labels are correct and pretty verbosely explain what happens if you click them. What is the correct messagebox ? Created attachment 97890 [details]
Correct messagebox for importing iCal/vCal, which appears if kOrganizer is already running.
This screenshot shows the same dialog with correct buttons. It appears this way if the kOrganizer is already running when the iCal/vCal file is to be imported. The buttons read "Merge into existing calendar" and "Import as new calendar".
If the kOrganizer GUI is not yet running while an iCal/vCal import is attempted, the same message box appears but shows just "Yes" and "No" instead, while the displayed message is an either/or question.
I confirm it it's a bug in kmessagebox + kguiitem... No idea how to fix it yet Git commit 376da8f1c6d537f387d905ab4466ec6d7a6c8df6 by David Faure. Committed on 15/06/2016 at 10:13. Pushed by dfaure into branch 'Applications/16.04'. Port away from KLocale (which was used for use12Clock()). Amazingly, this fixes a bug with a messagebox showing "Yes/No" instead of "Merge/Add" when launching korganizer with a .ics file as argument. Here's why: KLocale::global() creates a QTranslator instance, which sends a LanguageChange event. QDialogButtonBox (already shown at that point) reacts by retranslating the buttons, ignoring the custom text we set on the buttons. That's a Qt bug, I'll look into fixing that as well. FIXED-IN: Applications/16.04 M +13 -6 src/agenda/timelabels.cpp http://commits.kde.org/eventviews/376da8f1c6d537f387d905ab4466ec6d7a6c8df6 Thanks, David! |