[Xfce4-commits] <postler:master> Move to Trash when deleting, or remove if already in Trash
Christian Dywan
noreply at xfce.org
Sat Jul 10 00:24:09 CEST 2010
Updating branch refs/heads/master
to cef287838a650dbc392cee4aacd986ec1cd14e2d (commit)
from f1d1d343b6e26d045e587be02f192414c9a486b0 (commit)
commit cef287838a650dbc392cee4aacd986ec1cd14e2d
Author: Christian Dywan <christian at twotoasts.de>
Date: Mon Jun 28 23:20:17 2010 +0200
Move to Trash when deleting, or remove if already in Trash
postler/postler-messages.vala | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/postler/postler-messages.vala b/postler/postler-messages.vala
index ee8bf77..45661f9 100644
--- a/postler/postler-messages.vala
+++ b/postler/postler-messages.vala
@@ -578,8 +578,10 @@ public class Postler.Messages : Gtk.TreeView {
}
public void delete_selected () {
- /* TODO: Optionally move to waste bin if deleting from inbox */
- move_selected (null);
+ if (last_location.has_suffix ("/Trash"))
+ move_selected (null);
+ else
+ move_selected ("Trash");
}
static uint maildir_sequence_number = 0;
More information about the Xfce4-commits
mailing list