Fix bug where time of single instance of recurring event could not be changed
ClosedPublic

Authored by sjolly on Mar 19 2020, 8:53 PM.

Details

Summary

BUG: 410758

  • Removed QObject::connect calls in recurrenceactions.cpp as the required "clicked" signals are already handled in DialogButtonsHelper in kmessagebox
  • Updated variable type for storing return value of createKMessageBox

Diff Detail

Repository
R173 KCalendar Utils
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
sjolly created this revision.Mar 19 2020, 8:53 PM
Restricted Application added a project: KDE PIM. · View Herald TranscriptMar 19 2020, 8:53 PM
Restricted Application added a subscriber: kde-pim. · View Herald Transcript
sjolly requested review of this revision.Mar 19 2020, 8:53 PM
mlaurent added a subscriber: mlaurent.EditedMar 20 2020, 6:31 AM

Hi,
Please use arc so we can have context.

It can be a good idea to explain that this signals are already connected in kmessagebox directly in DialogButtonsHelper otherwise we don't understand why you removed them.

Please add info in commit log.
Regards

mlaurent requested changes to this revision.Mar 20 2020, 6:32 AM
This revision now requires changes to proceed.Mar 20 2020, 6:32 AM

you can change "int result = KMessageBox::createKMessageBox(" to QDialogButtonBox::StandardButton return = ...

sjolly updated this revision to Diff 78079.Mar 20 2020, 10:14 AM

Replace int with QDialogButtonBox::StandardButton for storing return value of createKMessageBox

sjolly edited the summary of this revision. (Show Details)Mar 20 2020, 10:16 AM
sjolly added a comment.EditedMar 20 2020, 10:27 AM

@mlaurent Thanks for the feedback! I was aware the commit message wasn't great, but couldn't figure out exactly where the signals were being handled.

Really appreciate the guidance :)

mlaurent accepted this revision.Mar 20 2020, 12:13 PM
This revision is now accepted and ready to land.Mar 20 2020, 12:13 PM

are you fixing a specific bug with this that's already reporting in bugs.kde.org?
if so, we should make sure to resolve that bug.

@winterz Yes, its a reported bug:

https://bugs.kde.org/show_bug.cgi?id=410758

I've added the ID in the revision summary . Is that not enough?

@winterz Yes, its a reported bug:

https://bugs.kde.org/show_bug.cgi?id=410758

I've added the ID in the revision summary . Is that not enough?

My bad. I see that now.
Feel free to commit into the release/20.04 branch and then merge to master.

sjolly added a comment.EditedMar 21 2020, 7:26 AM

@winterz Yes, its a reported bug:

https://bugs.kde.org/show_bug.cgi?id=410758

I've added the ID in the revision summary . Is that not enough?

My bad. I see that now.
Feel free to commit into the release/20.04 branch and then merge to master.

@winterz Can you help me with this?

A bit new to arc and phabricator :)

Will arc land do this directly?

as long as you have write access, I believe that should work fine.

This revision was automatically updated to reflect the committed changes.