Shelf delete without confirmation dialog when disabled in the dialog settings.

SVN revision: 33574
This commit is contained in:
Miculcy Brian 2008-01-24 00:55:16 +00:00
parent 284f202c13
commit 4fd276612f
1 changed files with 13 additions and 0 deletions

View File

@ -261,6 +261,19 @@ _cb_delete(void *data, void *data2)
if (!d->es) return;
e_object_ref(E_OBJECT(d->es));
if (e_config->cnfmdlg_disabled)
{
if (e_object_is_del(E_OBJECT(d->es))) return;
e_shelf_unsave(d->es);
e_object_del(E_OBJECT(d->es));
e_config_save_queue();
e_object_unref(E_OBJECT(d->es));
_ilist_fill(d->cfdata);
E_FREE(d);
return;
}
snprintf(buf, sizeof(buf), _("You requested to delete \"%s\".<br><br>"
"Are you sure you want to delete this shelf?"),
d->cfdata->cur_shelf);