[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/kdepim/enterprise/kdepim/kmail
From: Sergio Luis Martins <iamsergio () gmail ! com>
Date: 2010-10-06 14:26:45
Message-ID: 20101006142645.B0726AC7E4 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1183209 by smartins:
If we hit an assert, print debug info before crashing.
MERGE: none
M +9 -1 folderstorage.cpp
--- branches/kdepim/enterprise/kdepim/kmail/folderstorage.cpp #1183208:1183209
@@ -360,7 +360,15 @@
for( QPtrListIterator<KMMsgBase> it( msgList ); *it; ++it )
{
int idx = find(it.current());
- assert( idx != -1);
+
+ if ( idx == -1 ) {
+ kdWarning(5006) << "Going to crash. Subject of faulty message is "
+ << it.current()->subject()
+ << "; filename = " << it.current()->fileName()
+ << endl;
+ assert( false && " idx != 1 " );
+ }
+
removeMsg(idx, imapQuiet);
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic