[Libreoffice-commits] .: Branch 'libreoffice-4-0' - vcl/unx

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Dec 19 04:37:46 PST 2012


 vcl/unx/kde4/KDE4FilePicker.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 89baaae1d301b1eb8777177f359a6915862fa6f9
Author: Luboš Luňák <l.lunak at suse.cz>
Date:   Wed Dec 19 13:33:15 2012 +0100

    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

diff --git a/vcl/unx/kde4/KDE4FilePicker.cxx b/vcl/unx/kde4/KDE4FilePicker.cxx
index 95f9de3..5759414 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:


More information about the Libreoffice-commits mailing list