summaryrefslogtreecommitdiff
path: root/src/gui/windows/maileditwindow.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-25 23:55:43 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-25 23:55:43 +0300
commitd0768817618143739b8fd81cfa9124e8f60e1b12 (patch)
tree94450009f3bf4cd7726250633865f0a112f625fb /src/gui/windows/maileditwindow.h
parentf7d3792df9fd01ea7baabaf9b612031b1f28d7ab (diff)
downloadmv-d0768817618143739b8fd81cfa9124e8f60e1b12.tar.gz
mv-d0768817618143739b8fd81cfa9124e8f60e1b12.tar.bz2
mv-d0768817618143739b8fd81cfa9124e8f60e1b12.tar.xz
mv-d0768817618143739b8fd81cfa9124e8f60e1b12.zip
Validate destination name after it entered in mail edit window.
Diffstat (limited to 'src/gui/windows/maileditwindow.h')
-rw-r--r--src/gui/windows/maileditwindow.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gui/windows/maileditwindow.h b/src/gui/windows/maileditwindow.h
index 37d983c1c..2c6c5d0ef 100644
--- a/src/gui/windows/maileditwindow.h
+++ b/src/gui/windows/maileditwindow.h
@@ -24,6 +24,7 @@
#include "gui/widgets/window.h"
#include "listeners/actionlistener.h"
+#include "listeners/focuslistener.h"
class Button;
class IntTextField;
@@ -35,7 +36,8 @@ class ScrollArea;
class TextField;
class MailEditWindow final : public Window,
- public ActionListener
+ public ActionListener,
+ public FocusListener
{
public:
MailEditWindow();
@@ -60,6 +62,10 @@ class MailEditWindow final : public Window,
void updateItems();
+ void focusLost(const Event &event) override final;
+
+ void validatedTo();
+
private:
void sendMail();