Commit 0c8ffad0 authored by Tobias Koenig's avatar Tobias Koenig
Browse files

Adapt to changes in MessageStatus

svn path=/trunk/KDE/kdepim/runtime/; revision=1197782
parent 5e00dc4a
...@@ -124,7 +124,7 @@ MessageStatus& KMIndexData::status() ...@@ -124,7 +124,7 @@ MessageStatus& KMIndexData::status()
mStatus.clear(); mStatus.clear();
break; break;
case KMLegacyMsgStatusUnread: case KMLegacyMsgStatusUnread:
mStatus.setUnread(); mStatus.setRead( false );
break; break;
case KMLegacyMsgStatusRead: case KMLegacyMsgStatusRead:
mStatus.setRead(); mStatus.setRead();
......
...@@ -99,7 +99,7 @@ void TestIdxReader::testRead() { ...@@ -99,7 +99,7 @@ void TestIdxReader::testRead() {
QCOMPARE ( subject, QString ( "foo bar" ) ); QCOMPARE ( subject, QString ( "foo bar" ) );
QVERIFY ( status.isImportant() ); QVERIFY ( status.isImportant() );
QVERIFY ( msg->status().isImportant() ); QVERIFY ( msg->status().isImportant() );
QVERIFY ( msg->status().isUnread() ); QVERIFY ( !msg->status().isRead() );
QVERIFY ( msg->tagList().size() == 0 ); QVERIFY ( msg->tagList().size() == 0 );
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment