author | zautrix <zautrix> | 2005-02-28 14:46:07 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-02-28 14:46:07 (UTC) |
commit | b1f912cbb6a9daf050e94d337de0e0e73417284a (patch) (unidiff) | |
tree | 09220df0ef11ccc32c4eafcc2a63b64056068036 /kmicromail/accountview.cpp | |
parent | ff810f8f74f6928e664bf52f8e8d128edb8ac5ad (diff) | |
download | kdepimpi-b1f912cbb6a9daf050e94d337de0e0e73417284a.zip kdepimpi-b1f912cbb6a9daf050e94d337de0e0e73417284a.tar.gz kdepimpi-b1f912cbb6a9daf050e94d337de0e0e73417284a.tar.bz2 |
ompi refresh outgoing fix
-rw-r--r-- | kmicromail/accountview.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/kmicromail/accountview.cpp b/kmicromail/accountview.cpp index c9c4a0f..3ad3e9b 100644 --- a/kmicromail/accountview.cpp +++ b/kmicromail/accountview.cpp | |||
@@ -97,8 +97,26 @@ void AccountView::refresh(QListViewItem *item) | |||
97 | view->refresh(headerlist); | 97 | view->refresh(headerlist); |
98 | emit refreshMailview(headerlist); | 98 | emit refreshMailview(headerlist); |
99 | } | 99 | } |
100 | } | 100 | } |
101 | void AccountView::refreshOutgoing() | ||
102 | { | ||
103 | m_currentItem = currentItem(); | ||
104 | if ( !m_currentItem ) return; | ||
105 | AccountViewItem *view = static_cast<AccountViewItem *>(m_currentItem); | ||
106 | QString bName = view->getFolder()->getDisplayName(); | ||
107 | if (bName.startsWith("/")&&bName.length()>1) | ||
108 | { | ||
109 | bName.replace(0,1,""); | ||
110 | } | ||
111 | int pos = bName.findRev("/"); | ||
112 | if (pos > 0) | ||
113 | { | ||
114 | bName.replace(0,pos+1,""); | ||
115 | } | ||
116 | if ( bName.lower() == "outgoing" ) | ||
117 | refreshCurrent(); | ||
118 | } | ||
101 | 119 | ||
102 | void AccountView::refreshCurrent() | 120 | void AccountView::refreshCurrent() |
103 | { | 121 | { |
104 | m_currentItem = currentItem(); | 122 | m_currentItem = currentItem(); |