[Xfce4-commits] <postler:master> Bail out if trying to move message to unset folder

Christian Dywan noreply at xfce.org
Fri Feb 25 02:30:03 CET 2011


Updating branch refs/heads/master
         to 152bd56a532a5a9081792a79a0de1f669d295a60 (commit)
       from caa95ca4936f4276baa1eba6ee31fd0ea4397a27 (commit)

commit 152bd56a532a5a9081792a79a0de1f669d295a60
Author: Christian Dywan <christian at twotoasts.de>
Date:   Fri Feb 25 01:58:28 2011 +0100

    Bail out if trying to move message to unset folder

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

diff --git a/postler/postler-messages.vala b/postler/postler-messages.vala
index c31308c..d667511 100644
--- a/postler/postler-messages.vala
+++ b/postler/postler-messages.vala
@@ -989,6 +989,7 @@ public class Postler.Messages : Gtk.TreeView {
         if (type == null)
             destination_path = null;
         else {
+            return_if_fail (account_info.get_folder (type) != null);
             destination_path = account_info.path + "/" + account_info.get_folder (type);
             if (!ensure_folder (destination_path)) {
                 GLib.critical (_("Folders for moving messages couldn't be created."));



More information about the Xfce4-commits mailing list