[geary/wip/create-folders-713492: 22/26] Allow null separator where it's never used



commit 5d5e6fa80b1e7911f64bddde1e5aa1cb8b34ec10
Author: Charles Lindsay <chaz yorba org>
Date:   Thu Feb 6 17:00:29 2014 -0800

    Allow null separator where it's never used
    
    This allows us to create folders in the root without caring what the
    separator is.

 src/engine/api/geary-folder-path.vala |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/engine/api/geary-folder-path.vala b/src/engine/api/geary-folder-path.vala
index c83cc44..efa86db 100644
--- a/src/engine/api/geary-folder-path.vala
+++ b/src/engine/api/geary-folder-path.vala
@@ -192,8 +192,7 @@ public class Geary.FolderPath : BaseObject, Gee.Hashable<Geary.FolderPath>,
     public string? get_fullpath(string? use_separator) {
         string? separator = use_separator ?? get_root().default_separator;
         
-        // no separator, no fullpath
-        if (separator == null)
+        if (separator == null && !is_root())
             return null;
         
         // use cached copy if the stars align


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]