diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-10-07 17:13:59 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-10-07 17:18:54 +0100 |
commit | c8a795c9a0cc542f008166109528d4257afe2851 (patch) | |
tree | db33d35ecd26bcf53dbdaf562a2947016683ad58 /dbaccess | |
parent | clang-analyzer-deadcode.DeadStores (diff) | |
download | core-c8a795c9a0cc542f008166109528d4257afe2851.tar.gz core-c8a795c9a0cc542f008166109528d4257afe2851.zip |
tdf#94709 - protect TableWindowTitle Command execution.
Change-Id: I202a154e18c1fbffc31abcc7ccd7f500b67a4c13
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/querydesign/TableWindowTitle.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/dbaccess/source/ui/querydesign/TableWindowTitle.cxx b/dbaccess/source/ui/querydesign/TableWindowTitle.cxx index c661ee0e6be7..9db6d52b979c 100644 --- a/dbaccess/source/ui/querydesign/TableWindowTitle.cxx +++ b/dbaccess/source/ui/querydesign/TableWindowTitle.cxx @@ -110,7 +110,11 @@ void OTableWindowTitle::Command( const CommandEvent& rEvt ) { GrabFocus(); if ( m_pTabWin ) - m_pTabWin->Command( rEvt ); + { + // tdf#94709 - protect shutdown code-path. + VclPtr<OTableWindow> xTabWin(m_pTabWin); + xTabWin->Command( rEvt ); + } else Control::Command(rEvt); } |