Commits

Anonymous committed 25ea504

fs34b: #i89080# always apply the 'Link'/'Preview' state as read from configuration

  • Participants
  • Parent commits ca0f977

Comments (0)

Files changed (1)

File sfx2/source/dialog/filedlghelper.cxx

 			{
 				// respect the last "insert as link" state
 				sal_Bool bLink = (sal_Bool) aUserData.GetToken( 0, ' ' ).ToInt32();
-                if ( !xDlg->getValue( ExtendedFilePickerElementIds::CHECKBOX_LINK, 0 ).hasValue() )
-                {
-				    aValue <<= bLink;
-				    xDlg->setValue( ExtendedFilePickerElementIds::CHECKBOX_LINK, 0, aValue );
-                }
+				aValue <<= bLink;
+				xDlg->setValue( ExtendedFilePickerElementIds::CHECKBOX_LINK, 0, aValue );
 
 				// respect the last "show preview" state
 				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.getLength() )
 					displayFolder( getInitPath( aUserData, 2 ) );