summaryrefslogtreecommitdiffstats
path: root/examples/qtmail/app/emailclient.cpp
diff options
context:
space:
mode:
authorKimmo Kotajärvi <kimmo.kotajarvi@nomovok.com>2010-05-17 16:31:09 +0200
committerKimmo Kotajärvi <kimmo.kotajarvi@nomovok.com>2010-05-18 09:39:20 +0200
commitba12ea980617745da2231642da71c49f040cc4db (patch)
tree8224364a6b574dc4f31ec4e9c47caed8db1e1777 /examples/qtmail/app/emailclient.cpp
parent9f894c9a16bb9f22bf24f51ff3aedbcbe6a2862e (diff)
Update message read view when draft selected in addition to opening the edit window.
Diffstat (limited to 'examples/qtmail/app/emailclient.cpp')
-rw-r--r--examples/qtmail/app/emailclient.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/examples/qtmail/app/emailclient.cpp b/examples/qtmail/app/emailclient.cpp
index 25245466..6f60eab9 100644
--- a/examples/qtmail/app/emailclient.cpp
+++ b/examples/qtmail/app/emailclient.cpp
@@ -1518,13 +1518,12 @@ void EmailClient::messageActivated()
QMailMessage message(currentId);
if (message.status() & QMailMessage::Draft) {
modify(message);
- } else {
- bool hasNext = false;
- bool hasPrevious = false;
- if (readMailWidget()->displayedMessage() != currentId) {
- readMailWidget()->displayMessage(currentId, QMailViewerFactory::AnyPresentation, hasNext, hasPrevious);
- }
}
+
+ bool hasNext = false;
+ bool hasPrevious = false;
+ if (readMailWidget()->displayedMessage() != currentId)
+ readMailWidget()->displayMessage(currentId, QMailViewerFactory::AnyPresentation, hasNext, hasPrevious);
}
void EmailClient::showSearchResult(const QMailMessageId &id)