[kde-doc-english] [trojita] src/Gui: GUI: sync the flag actions with the current message
Jan Kundrát
jkt at flaska.net
Fri Mar 15 10:28:37 UTC 2013
Git commit 3c689a540bd34f829d2eb42db2cb5dd01edaeadb by Jan Kundrát.
Committed on 15/03/2013 at 11:16.
Pushed by jkt into branch 'master'.
GUI: sync the flag actions with the current message
Thanks to "serpentine" on IRC for reporting this.
M +3 -0 src/Gui/Window.cpp
http://commits.kde.org/trojita/3c689a540bd34f829d2eb42db2cb5dd01edaeadb
diff --git a/src/Gui/Window.cpp b/src/Gui/Window.cpp
index 7e3c24f..8c1a589 100644
--- a/src/Gui/Window.cpp
+++ b/src/Gui/Window.cpp
@@ -717,6 +717,9 @@ void MainWindow::msgListClicked(const QModelIndex &index)
if (! index.data(Imap::Mailbox::RoleMessageUid).isValid())
return;
+ // Be sure to update the toolbar/actions with the state of the current message
+ updateMessageFlags();
+
if (index.column() == Imap::Mailbox::MsgListModel::SEEN) {
QModelIndex translated;
Imap::Mailbox::Model::realTreeItem(index, 0, &translated);
More information about the kde-doc-english
mailing list