From b2c91edc9646daa331de71d589e4fec6bdef4945 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 11 Jul 2018 17:09:17 +0300 Subject: GUI change: - methods OnInitDialog, OnApply & OnClose of CDlgBase now return true if successful. return of false prevents a dialog from being loaded or left respectively; - massive code cleaning considering the 'virtual' attribute of overridden methods; - also fixes #1476 (Don't close "Create new account" window if user not set account name) --- plugins/CloudFile/src/options.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/CloudFile/src/options.h') diff --git a/plugins/CloudFile/src/options.h b/plugins/CloudFile/src/options.h index 30f6600f68..aaf1440def 100644 --- a/plugins/CloudFile/src/options.h +++ b/plugins/CloudFile/src/options.h @@ -15,8 +15,8 @@ private: CCtrlCheck m_urlCopyToClipboard; protected: - void OnInitDialog(); - void OnApply(); + bool OnInitDialog() override; + bool OnApply() override; public: COptionsMainDlg(); @@ -31,7 +31,7 @@ private: CCtrlButton m_revokeAccess; protected: - void OnInitDialog(); + bool OnInitDialog() override; void RequestAccess_OnClick(CCtrlButton*); void RevokeAccess_OnClick(CCtrlButton*); -- cgit v1.2.3