diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2021-08-18 20:39:34 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2021-08-18 20:39:34 +0200 |
commit | 24cc60499ad147c1897b3b68e0d8e9dde36b013c (patch) | |
tree | f93c4a826d038302d79959c6507a16aa8c20e2a3 /src/events/EventPage.vala | |
parent | 29dcf0568d89ade47d70714865d6d917766ec257 (diff) | |
parent | 2ed34746222ea505631ae8ef8ca50552af999ad2 (diff) |
Update upstream source from tag 'upstream/0.30.14'
Update to upstream version '0.30.14'
with Debian dir 7d034387dcf9975c7a3797cecaabd43467a63713
Diffstat (limited to 'src/events/EventPage.vala')
-rw-r--r-- | src/events/EventPage.vala | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/src/events/EventPage.vala b/src/events/EventPage.vala index a482ab8..1375c39 100644 --- a/src/events/EventPage.vala +++ b/src/events/EventPage.vala @@ -50,7 +50,8 @@ public class EventPage : CollectionPage { private const GLib.ActionEntry[] entries = { { "MakePrimary", on_make_primary }, { "Rename", on_rename }, - { "EditEventComment", on_edit_comment } + { "EditComment", on_edit_comment }, + { "EditEventComment", on_edit_event_comment } }; protected override void add_actions(GLib.ActionMap map) { @@ -96,19 +97,19 @@ public class EventPage : CollectionPage { set_page_name(page_event.get_name()); } - protected override void on_edit_comment() { - if (get_view().get_selected_count() == 0) { - EditCommentDialog edit_comment_dialog = new EditCommentDialog(page_event.get_comment(), - true); - string? new_comment = edit_comment_dialog.execute(); - if (new_comment == null) - return; - - EditEventCommentCommand command = new EditEventCommentCommand(page_event, new_comment); - get_command_manager().execute(command); + private void on_edit_event_comment() { + EditCommentDialog edit_comment_dialog = new EditCommentDialog(page_event.get_comment(), + true); + string? new_comment = edit_comment_dialog.execute(); + if (new_comment == null) return; - } + EditEventCommentCommand command = new EditEventCommentCommand(page_event, new_comment); + get_command_manager().execute(command); + return; + } + + protected override void on_edit_comment() { base.on_edit_comment(); } |