[Xfce4-commits] <postler:master> Use basename for new destination in move_selected()

Christian Dywan noreply at xfce.org
Fri Nov 26 01:08:03 CET 2010


Updating branch refs/heads/master
         to fe359f0764ec13be369392560e686c95d2ba445c (commit)
       from 33ab418e220de6da738e4eb996d9103ef63ea36d (commit)

commit fe359f0764ec13be369392560e686c95d2ba445c
Author: Christian Dywan <christian at twotoasts.de>
Date:   Thu Nov 25 23:01:44 2010 +0100

    Use basename for new destination in move_selected()

 postler/postler-messages.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/postler/postler-messages.vala b/postler/postler-messages.vala
index 146881a..b95d2e5 100644
--- a/postler/postler-messages.vala
+++ b/postler/postler-messages.vala
@@ -910,7 +910,7 @@ public class Postler.Messages : Gtk.TreeView {
                         if ("S" in flags)
                             filename = Path.get_basename (bare_filename) + ":" + flags;
                         else
-                            filename = toggle_flag (location, 'S');
+                            filename = Path.get_basename (toggle_flag (location, 'S'));
                         string new_location = destination_path + "/cur/" + filename;
                         var destination_file = File.new_for_path (new_location);
                         file.move (destination_file, 0, null, null);



More information about the Xfce4-commits mailing list