Kaydet (Commit) 28e4c025 authored tarafından Luboš Luňák's avatar Luboš Luňák

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
üst fff4d120
...@@ -362,7 +362,7 @@ void SAL_CALL KDE4FilePicker::setValue( sal_Int16 controlId, sal_Int16, const un ...@@ -362,7 +362,7 @@ void SAL_CALL KDE4FilePicker::setValue( sal_Int16 controlId, sal_Int16, const un
case ExtendedFilePickerElementIds::CHECKBOX_SELECTION: case ExtendedFilePickerElementIds::CHECKBOX_SELECTION:
{ {
QCheckBox* cb = dynamic_cast<QCheckBox*>(widget); QCheckBox* cb = dynamic_cast<QCheckBox*>(widget);
cb->setChecked(value.getValue()); cb->setChecked(value.get<bool>());
break; break;
} }
case ExtendedFilePickerElementIds::PUSHBUTTON_PLAY: case ExtendedFilePickerElementIds::PUSHBUTTON_PLAY:
......
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