Kaydet (Commit) c6b8f644 authored tarafından Frank Schoenheit [fs]'s avatar Frank Schoenheit [fs] Kaydeden (comit) Michael Meeks

fs34b: #i89080# always apply the 'Link'/'Preview' state from config

Conflicts:

	sfx2/source/dialog/filedlghelper.cxx
üst 5f26c0fb
...@@ -2110,13 +2110,15 @@ void FileDialogHelper_Impl::loadConfig() ...@@ -2110,13 +2110,15 @@ void FileDialogHelper_Impl::loadConfig()
{ {
try try
{ {
// respect the last "insert as link" state
sal_Bool bLink = (sal_Bool) aUserData.GetToken( 0, ' ' ).ToInt32();
aValue <<= bLink;
xDlg->setValue( ExtendedFilePickerElementIds::CHECKBOX_LINK, 0, aValue );
// respect the last "show preview" state // respect the last "show preview" state
sal_Bool bShowPreview = (sal_Bool) aUserData.GetToken( 1, ' ' ).ToInt32(); sal_Bool bShowPreview = (sal_Bool) aUserData.GetToken( 1, ' ' ).ToInt32();
if ( !xDlg->getValue( ExtendedFilePickerElementIds::CHECKBOX_PREVIEW, 0 ).hasValue() ) aValue <<= bShowPreview;
{ xDlg->setValue( ExtendedFilePickerElementIds::CHECKBOX_PREVIEW, 0, aValue );
aValue <<= bShowPreview;
xDlg->setValue( ExtendedFilePickerElementIds::CHECKBOX_PREVIEW, 0, aValue );
}
if ( maPath.isEmpty() ) if ( maPath.isEmpty() )
displayFolder( getInitPath( aUserData, 2 ) ); displayFolder( getInitPath( aUserData, 2 ) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment