summaryrefslogtreecommitdiff
path: root/src/gui/windows/mailwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-26 19:33:11 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-26 19:33:11 +0300
commit86735e142e86391e46b0eafbcb7ef01e25fc969a (patch)
treea717ba215baae052de204ed7b8e50b20c453882a /src/gui/windows/mailwindow.cpp
parentd3f61bb7da045c7d0a955a3859aac713d1bfc6e7 (diff)
downloadmanaplus-86735e142e86391e46b0eafbcb7ef01e25fc969a.tar.gz
manaplus-86735e142e86391e46b0eafbcb7ef01e25fc969a.tar.bz2
manaplus-86735e142e86391e46b0eafbcb7ef01e25fc969a.tar.xz
manaplus-86735e142e86391e46b0eafbcb7ef01e25fc969a.zip
Add support for getting attached items from mail message.
Diffstat (limited to 'src/gui/windows/mailwindow.cpp')
-rw-r--r--src/gui/windows/mailwindow.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gui/windows/mailwindow.cpp b/src/gui/windows/mailwindow.cpp
index 18371b7ad..5536aecbc 100644
--- a/src/gui/windows/mailwindow.cpp
+++ b/src/gui/windows/mailwindow.cpp
@@ -375,3 +375,14 @@ void MailWindow::setLastPage()
mLastPage = true;
mReturnButton->setEnabled(false);
}
+
+void MailWindow::refreshMailNames()
+{
+ mMailModel->clear();
+ FOR_EACH (STD_VECTOR<MailMessage*>::iterator, it, mMessages)
+ {
+ MailMessage *message = *it;
+ if (message != nullptr)
+ mMailModel->add(getMailHeader(message));
+ }
+}