summaryrefslogtreecommitdiff
path: root/src/gui/windows/mailwindow.cpp
diff options
context:
space:
mode:
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));
+ }
+}