summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-03-26 17:26:28 (UTC)
committer zautrix <zautrix>2005-03-26 17:26:28 (UTC)
commit36dd498ad2f5a2cf43fc08c621669fe42198e5eb (patch) (side-by-side diff)
tree78f826bd02a35e0624d245f267ec5b595350574e
parente3f00322eb77bd03250eb66a2574b640de9aebb4 (diff)
downloadkdepimpi-36dd498ad2f5a2cf43fc08c621669fe42198e5eb.zip
kdepimpi-36dd498ad2f5a2cf43fc08c621669fe42198e5eb.tar.gz
kdepimpi-36dd498ad2f5a2cf43fc08c621669fe42198e5eb.tar.bz2
fix
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--kmicromail/accountview.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/kmicromail/accountview.cpp b/kmicromail/accountview.cpp
index e9be224..6227f6d 100644
--- a/kmicromail/accountview.cpp
+++ b/kmicromail/accountview.cpp
@@ -94,24 +94,26 @@ void AccountView::refresh(QListViewItem *item)
m_currentItem = item;
QValueList<RecMailP> headerlist;
AccountViewItem *view = static_cast<AccountViewItem *>(item);
view->refresh(headerlist);
emit refreshMailview(headerlist);
}
}
void AccountView::refreshOutgoing()
{
m_currentItem = currentItem();
if ( !m_currentItem ) return;
AccountViewItem *view = static_cast<AccountViewItem *>(m_currentItem);
+ if ( !view->getFolder() )
+ return;
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,"");
}
//qDebug("name *%s* ",bName.lower().latin1() );
if ( bName.lower() == "outgoing" || bName.lower() == "sent" || bName.lower() == "sendfailed" ) {