summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-04-30 19:31:23 +0300
committerAndrei Karas <akaras@inbox.ru>2015-04-30 19:31:23 +0300
commitac1522baed408a7626bab9596d2fcd31c8aed351 (patch)
tree6a517a612dd4a6321ccb5cba0b017b3051edc6cd /src/gui
parenta1d4648599913022bbba990254aac75b8738cd84 (diff)
downloadmanaplus-ac1522baed408a7626bab9596d2fcd31c8aed351.tar.gz
manaplus-ac1522baed408a7626bab9596d2fcd31c8aed351.tar.bz2
manaplus-ac1522baed408a7626bab9596d2fcd31c8aed351.tar.xz
manaplus-ac1522baed408a7626bab9596d2fcd31c8aed351.zip
Request mail list automatically on start.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/windows/mailwindow.cpp5
-rw-r--r--src/gui/windows/mailwindow.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/windows/mailwindow.cpp b/src/gui/windows/mailwindow.cpp
index 6f0ce2987..cf42b3170 100644
--- a/src/gui/windows/mailwindow.cpp
+++ b/src/gui/windows/mailwindow.cpp
@@ -276,3 +276,8 @@ void MailWindow::mouseClicked(MouseEvent &event)
}
}
}
+
+void MailWindow::postConnection()
+{
+ mailHandler->refresh();
+}
diff --git a/src/gui/windows/mailwindow.h b/src/gui/windows/mailwindow.h
index 2013461d5..7df4be23f 100644
--- a/src/gui/windows/mailwindow.h
+++ b/src/gui/windows/mailwindow.h
@@ -65,6 +65,8 @@ class MailWindow final : public Window,
void mouseClicked(MouseEvent &event) override final;
+ void postConnection();
+
private:
std::vector<MailMessage*> mMessages;
std::map<int, MailMessage*> mMessagesMap;