diff options
Diffstat (limited to 'calendar/gui/dialogs/task-page.c')
-rw-r--r-- | calendar/gui/dialogs/task-page.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/calendar/gui/dialogs/task-page.c b/calendar/gui/dialogs/task-page.c index 1a7352aab5..43a9b793eb 100644 --- a/calendar/gui/dialogs/task-page.c +++ b/calendar/gui/dialogs/task-page.c @@ -1081,13 +1081,15 @@ remove_clicked_cb (GtkButton *btn, TaskPage *page) GList *paths = NULL, *tmp; GtkTreeIter iter; GtkTreePath *path = NULL; + GtkTreeModel *model = NULL; gboolean valid_iter; char *address; priv = page->priv; selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (priv->list_view)); - if (!(paths = gtk_tree_selection_get_selected_rows (selection, (GtkTreeModel **) &(priv->model)))) { + model = GTK_TREE_MODEL (priv->model); + if (!(paths = gtk_tree_selection_get_selected_rows (selection, &model))) { g_warning ("Could not get a selection to delete."); return; } |