diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-04-21 17:31:22 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-04-21 17:44:30 +0200 |
commit | fcc89a201a06ede057dae86d4591199bf69fab50 (patch) | |
tree | b1aa85322f325fcf2055c0ddf8f7ffcafdf5002b /examples/imapresource/imapserverproxy.h | |
parent | 0d9d054be6a1716abff20a49e44d94b9b79ab107 (diff) | |
download | sink-fcc89a201a06ede057dae86d4591199bf69fab50.tar.gz sink-fcc89a201a06ede057dae86d4591199bf69fab50.zip |
Make sure we always have a complete hierarchy from the IMAP server
Diffstat (limited to 'examples/imapresource/imapserverproxy.h')
-rw-r--r-- | examples/imapresource/imapserverproxy.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/imapresource/imapserverproxy.h b/examples/imapresource/imapserverproxy.h index 0d70ba5..2d90f39 100644 --- a/examples/imapresource/imapserverproxy.h +++ b/examples/imapresource/imapserverproxy.h | |||
@@ -118,6 +118,15 @@ struct Folder { | |||
118 | return parentPath; | 118 | return parentPath; |
119 | } | 119 | } |
120 | 120 | ||
121 | Folder parentFolder() const | ||
122 | { | ||
123 | Folder parent; | ||
124 | parent.mPath = parentPath(); | ||
125 | parent.mNamespace = mNamespace; | ||
126 | parent.mSeparator = mSeparator; | ||
127 | return parent; | ||
128 | } | ||
129 | |||
121 | QString name() const | 130 | QString name() const |
122 | { | 131 | { |
123 | auto pathParts = mPath.split(mSeparator); | 132 | auto pathParts = mPath.split(mSeparator); |