summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRachit Gupta <rachitgupta1792@gmail.com>2014-02-26 19:12:08 +0530
committerCaolán McNamara <caolanm@redhat.com>2014-03-01 05:56:48 -0600
commit55eb86699d7d4b2151530e9a0b3ca2e99033595b (patch)
tree39941779bbdca4f25aaaf67ef0c2f3328ec23fad
parent4133c3e6ff31b63d6ea3e426f4e8715bf7895a86 (diff)
fdo#74064 The filename gets properly highlighted in the Save As dialog.
The filename was missing the extension which was causing problems. The extension is retained now by disabling the autoextension checkbox. Change-Id: If913124c22265da2bacb043d83386fd8f5710ca8 Reviewed-on: https://gerrit.libreoffice.org/8364 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx b/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx
index 2365565ce614..6e524b93620e 100644
--- a/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx
+++ b/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx
@@ -1345,9 +1345,13 @@ void SAL_CALL SalGtkFilePicker::setValue( sal_Int16 nControlId, sal_Int16 nContr
OSL_TRACE("enable unknown control %d", nControlId);
else if( tType == GTK_TYPE_TOGGLE_BUTTON )
{
- bool bChecked = false;
- rValue >>= bChecked;
- gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( pWidget ), bChecked );
+ // fdo#74064, not activating the auto_extension checkbox so that proper filename is highlighted.
+ if(nControlId != ExtendedFilePickerElementIds::CHECKBOX_AUTOEXTENSION)
+ {
+ bool bChecked = false;
+ rValue >>= bChecked;
+ gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( pWidget ), bChecked );
+ }
}
else if( tType == GTK_TYPE_COMBO_BOX )
HandleSetListValue(GTK_COMBO_BOX(pWidget), nControlAction, rValue);