diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2012-12-19 13:33:15 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-12-19 13:36:51 +0100 |
commit | 28e4c0250e67a344b4d6088bdca2e680a4bffad0 (patch) | |
tree | 6bb03cb0e9bd54931f9b655ea0a8dd0bc3138792 | |
parent | fff4d120866a0be3cd8185f2c67bb9f59b1a6a3f (diff) |
fix KDE file dialog setting checkboxes to true
No idea how long this has been broken, or if it ever worked,
but inserting a picture sets the 'link' and 'preview' checkboxes to true
for the next time (as getValue() returns void*, which gets silently
converted to bool *sigh*).
Change-Id: I6af0e09ac5e475fc9ff04cd7f937af0bc7aeea77
-rw-r--r-- | vcl/unx/kde4/KDE4FilePicker.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/unx/kde4/KDE4FilePicker.cxx b/vcl/unx/kde4/KDE4FilePicker.cxx index 95f9de355f17..57594147a36e 100644 --- a/vcl/unx/kde4/KDE4FilePicker.cxx +++ b/vcl/unx/kde4/KDE4FilePicker.cxx @@ -362,7 +362,7 @@ void SAL_CALL KDE4FilePicker::setValue( sal_Int16 controlId, sal_Int16, const un case ExtendedFilePickerElementIds::CHECKBOX_SELECTION: { QCheckBox* cb = dynamic_cast<QCheckBox*>(widget); - cb->setChecked(value.getValue()); + cb->setChecked(value.get<bool>()); break; } case ExtendedFilePickerElementIds::PUSHBUTTON_PLAY: |