summaryrefslogtreecommitdiff
path: root/fpicker
diff options
context:
space:
mode:
authorTino Rachui <tra@openoffice.org>2002-09-24 12:36:52 +0000
committerTino Rachui <tra@openoffice.org>2002-09-24 12:36:52 +0000
commita93427b480a25a2013f728a8f33e6069b05c0dbd (patch)
treebc1ebc5771c484ecb62e49147b5958bc1ad9182b /fpicker
parent881dc274ceaa2abdd27fe18c40fc0a14465a7267 (diff)
#99826#set the online filepicker state before initializing the control labels from the resource file in order to avoid overwriting offline set values
Diffstat (limited to 'fpicker')
-rw-r--r--fpicker/source/win32/filepicker/WinFileOpenImpl.cxx16
1 files changed, 10 insertions, 6 deletions
diff --git a/fpicker/source/win32/filepicker/WinFileOpenImpl.cxx b/fpicker/source/win32/filepicker/WinFileOpenImpl.cxx
index 8de62e94e480..a417a884617c 100644
--- a/fpicker/source/win32/filepicker/WinFileOpenImpl.cxx
+++ b/fpicker/source/win32/filepicker/WinFileOpenImpl.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: WinFileOpenImpl.cxx,v $
*
- * $Revision: 1.17 $
+ * $Revision: 1.18 $
*
- * last change: $Author: hro $ $Date: 2002-08-15 08:41:05 $
+ * last change: $Author: tra $ $Date: 2002-09-24 13:36:52 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -772,6 +772,14 @@ void SAL_CALL CWinFileOpenImpl::onInitDone()
// but now we have a valid parent handle
m_HelpPopupWindow.setParent(m_hwndFileOpenDlg);
+ // #99826
+ // Set the online filepicker state before initializing
+ // the control labels from the resource else we are
+ // overriding the offline settings
+ m_ExecuteFilePickerState->setHwnd(m_hwndFileOpenDlgChild);
+
+ m_FilePickerState = m_ExecuteFilePickerState;
+
// initialize controls from cache
EnumParam enumParam(INIT_CUSTOM_CONTROLS,this);
@@ -781,13 +789,9 @@ void SAL_CALL CWinFileOpenImpl::onInitDone()
CWinFileOpenImpl::EnumChildWndProc,
(LPARAM)&enumParam);
- m_ExecuteFilePickerState->setHwnd(m_hwndFileOpenDlgChild);
-
m_ExecuteFilePickerState->initFilePickerControls(
m_NonExecuteFilePickerState->getControlCommand());
- m_FilePickerState = m_ExecuteFilePickerState;
-
SetDefaultExtension();
m_CustomControls->Align();