[california] Treat Quick Add as create, not update, event: Bug #735853
- From: Jim Nelson <jnelson src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [california] Treat Quick Add as create, not update, event: Bug #735853
- Date: Thu, 4 Sep 2014 01:14:46 +0000 (UTC)
commit 3593276dbe11eea8560641c0db270474f3c47891
Author: Jim Nelson <jim yorba org>
Date: Wed Sep 3 18:14:08 2014 -0700
Treat Quick Add as create, not update, event: Bug #735853
src/host/host-main-window.vala | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/host/host-main-window.vala b/src/host/host-main-window.vala
index de664d3..c2f439a 100644
--- a/src/host/host-main-window.vala
+++ b/src/host/host-main-window.vala
@@ -456,7 +456,7 @@ public class MainWindow : Gtk.ApplicationWindow {
deck.dismiss.connect(() => {
if (quick_create.edit_required)
- edit_event(quick_create.event);
+ edit_event(quick_create.event, false);
});
if (use_deck_window)
@@ -488,24 +488,24 @@ public class MainWindow : Gtk.ApplicationWindow {
return;
}
- edit_event(clone);
+ edit_event(clone, true);
});
show_deck_popover(relative_to, for_location, deck);
}
- private void edit_event(Component.Event event) {
+ private void edit_event(Component.Event event, bool is_update) {
// use Idle loop so popovers have a chance to hide before bringing up DeckWindow
Idle.add(() => {
- on_edit_event(event);
+ on_edit_event(event, is_update);
return false;
}, Priority.LOW + 100);
}
- private void on_edit_event(Component.Event event) {
+ private void on_edit_event(Component.Event event, bool is_update) {
CreateUpdateEvent create_update = new CreateUpdateEvent();
- create_update.is_update = true;
+ create_update.is_update = is_update;
CreateUpdateRecurring create_update_recurring = new CreateUpdateRecurring();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]