From 36245c84bacd30135ba20ad459d9450300c78b00 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 16 Apr 2012 16:43:39 +0100 Subject: Resolves: fdo#48723 add a (hidden) CancelButton so ESC closes about dialog --- cui/source/dialogs/about.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cui/source/dialogs/about.cxx') diff --git a/cui/source/dialogs/about.cxx b/cui/source/dialogs/about.cxx index 0703f65566f2..dd39869da648 100644 --- a/cui/source/dialogs/about.cxx +++ b/cui/source/dialogs/about.cxx @@ -77,6 +77,7 @@ AboutDialog::AboutDialog( Window* pParent, const ResId& rId) : aCreditsButton ( this, ResId( ABOUT_BTN_CREDITS, *rId.GetResMgr() ) ), aWebsiteButton ( this, ResId( ABOUT_BTN_WEBSITE, *rId.GetResMgr() ) ), aLicenseButton ( this, ResId( ABOUT_BTN_LICENSE, *rId.GetResMgr() ) ), + aCancelButton ( this, ResId( ABOUT_BTN_CANCEL, *rId.GetResMgr() ) ), aVersionTextStr(ResId(ABOUT_STR_VERSION, *rId.GetResMgr())), m_aVendorTextStr(ResId(ABOUT_STR_VENDOR, *rId.GetResMgr())), m_aCopyrightTextStr(ResId(ABOUT_STR_COPYRIGHT, *rId.GetResMgr())), @@ -110,6 +111,9 @@ AboutDialog::AboutDialog( Window* pParent, const ResId& rId) : aWebsiteButton.SetClickHdl( LINK( this, AboutDialog, HandleClick ) ); aLicenseButton.SetClickHdl( LINK( this, AboutDialog, HandleClick ) ); + aCancelButton.SetClickHdl( LINK( this, AboutDialog, CancelHdl ) ); + aCancelButton.Hide(); + FreeResource(); // explicit Help-Id -- cgit