From b1f912cbb6a9daf050e94d337de0e0e73417284a Mon Sep 17 00:00:00 2001 From: zautrix Date: Mon, 28 Feb 2005 14:46:07 +0000 Subject: ompi refresh outgoing fix --- (limited to 'kmicromail/accountview.cpp') diff --git a/kmicromail/accountview.cpp b/kmicromail/accountview.cpp index c9c4a0f..3ad3e9b 100644 --- a/kmicromail/accountview.cpp +++ b/kmicromail/accountview.cpp @@ -98,6 +98,24 @@ void AccountView::refresh(QListViewItem *item) emit refreshMailview(headerlist); } } +void AccountView::refreshOutgoing() +{ + m_currentItem = currentItem(); + if ( !m_currentItem ) return; + AccountViewItem *view = static_cast(m_currentItem); + QString bName = view->getFolder()->getDisplayName(); + if (bName.startsWith("/")&&bName.length()>1) + { + bName.replace(0,1,""); + } + int pos = bName.findRev("/"); + if (pos > 0) + { + bName.replace(0,pos+1,""); + } + if ( bName.lower() == "outgoing" ) + refreshCurrent(); +} void AccountView::refreshCurrent() { -- cgit v0.9.0.2