summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorSzymon Kłos <eszkadev@gmail.com>2015-07-10 17:38:04 +0200
committerSzymon Kłos <eszkadev@gmail.com>2015-07-16 09:53:46 +0200
commit35e3defe9ab17494fa1f240e46fc2bd9bc043c1c (patch)
treed955ad60f8f09af648319fb4a5f5091bd5c45088 /svtools
parent0207ef8930cf047d8e1894e12148addbf27e70f1 (diff)
Container should be disposed before childs
Change-Id: Ia6feb9c57ce574236e4763c61484fb5a14e55ff4
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/dialogs/RemoteFilesDialog.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/svtools/source/dialogs/RemoteFilesDialog.cxx b/svtools/source/dialogs/RemoteFilesDialog.cxx
index 4d5c61914b6a..6b4e39bf15e4 100644
--- a/svtools/source/dialogs/RemoteFilesDialog.cxx
+++ b/svtools/source/dialogs/RemoteFilesDialog.cxx
@@ -196,6 +196,9 @@ class FileViewContainer : public vcl::Window
void changeFocus( bool bReverse )
{
+ if( !m_pFileView || !m_pTreeView )
+ return;
+
if( !bReverse && m_nCurrentFocus < 4 )
{
m_pFocusWidgets[++m_nCurrentFocus]->SetFakeFocus( true );
@@ -210,6 +213,9 @@ class FileViewContainer : public vcl::Window
virtual void GetFocus() SAL_OVERRIDE
{
+ if( !m_pFileView || !m_pTreeView )
+ return;
+
m_nCurrentFocus = 1;
m_pFocusWidgets[m_nCurrentFocus]->SetFakeFocus( true );
m_pFocusWidgets[m_nCurrentFocus]->GrabFocus();
@@ -353,10 +359,10 @@ void RemoteFilesDialog::dispose()
batch->commit();
}
+ m_pContainer.disposeAndClear(); // container must be first!
m_pTreeView.disposeAndClear();
m_pFileView.disposeAndClear();
m_pSplitter.disposeAndClear();
- m_pContainer.disposeAndClear();
m_pPath.disposeAndClear();
m_pOk_btn.clear();