aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@ximian.com>2001-01-22 03:06:54 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2001-01-22 03:06:54 +0800
commit687582285fd4b7a2752fc451b7c500974cd50f41 (patch)
tree4edd97f4e40659a5ee1ffd3019dc9d043e16c6c9 /calendar/gui
parentfa542564d95697cf30145db79a38343bdfd9fd3e (diff)
downloadgsoc2013-evolution-687582285fd4b7a2752fc451b7c500974cd50f41.tar
gsoc2013-evolution-687582285fd4b7a2752fc451b7c500974cd50f41.tar.gz
gsoc2013-evolution-687582285fd4b7a2752fc451b7c500974cd50f41.tar.bz2
gsoc2013-evolution-687582285fd4b7a2752fc451b7c500974cd50f41.tar.lz
gsoc2013-evolution-687582285fd4b7a2752fc451b7c500974cd50f41.tar.xz
gsoc2013-evolution-687582285fd4b7a2752fc451b7c500974cd50f41.tar.zst
gsoc2013-evolution-687582285fd4b7a2752fc451b7c500974cd50f41.zip
Fix bug #1250; now we present a confirmation dialog before deleting the
2001-01-21 Federico Mena Quintero <federico@ximian.com> * gui/dialogs/task-editor.c (file_delete_cb): Fix bug #1250; now we present a confirmation dialog before deleting the component. svn path=/trunk/; revision=7684
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/dialogs/task-editor.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/calendar/gui/dialogs/task-editor.c b/calendar/gui/dialogs/task-editor.c
index 571f9917ef..74849a66d4 100644
--- a/calendar/gui/dialogs/task-editor.c
+++ b/calendar/gui/dialogs/task-editor.c
@@ -37,6 +37,7 @@
#include <e-util/e-dialog-widgets.h>
#include <widgets/misc/e-dateedit.h>
#include <cal-util/timeutil.h>
+#include "delete-comp.h"
#include "task-editor.h"
#include "../calendar-config.h"
#include "../widget-util.h"
@@ -1052,7 +1053,6 @@ file_delete_cb (BonoboUIComponent *uic, gpointer data, const char *path)
{
TaskEditor *tedit;
TaskEditorPrivate *priv;
- const char *uid;
tedit = TASK_EDITOR (data);
@@ -1062,14 +1062,18 @@ file_delete_cb (BonoboUIComponent *uic, gpointer data, const char *path)
g_return_if_fail (priv->comp);
- cal_component_get_uid (priv->comp, &uid);
+ if (delete_component_dialog (priv->comp, priv->app)) {
+ const char *uid;
- /* We don't check the return value; FALSE can mean the object was not in
- * the server anyways.
- */
- cal_client_remove_object (priv->client, uid);
+ cal_component_get_uid (priv->comp, &uid);
- close_dialog (tedit);
+ /* We don't check the return value; FALSE can mean the object
+ * was not in the server anyways.
+ */
+ cal_client_remove_object (priv->client, uid);
+
+ close_dialog (tedit);
+ }
}
/* File/Close callback */