https://bugs.documentfoundation.org/show_bug.cgi?id=104106

            Bug ID: 104106
           Summary: "Save As" icon disabled as soon as switching embedded
                    doc within r/o doc into edit mode
           Product: LibreOffice
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Keywords: regression
          Severity: normal
          Priority: medium
         Component: framework
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: sberg...@redhat.com
                CC: momonas...@gmail.com

Created attachment 128937
  --> https://bugs.documentfoundation.org/attachment.cgi?id=128937&action=edit
test document

At least with current master towards LO 5.3 and recent LO 5.2.3:  Save the
attached embedded-ro.odt as a "physically" read-only file.  Open it with LO, in
the "This document is open in read-only mode" bar press "Edit Document"; the
"Save As" icon remains enabled.  Double-click into the "Inner Calc" embedded
document to switch it to edit mode.  The "Save As" icon erroneously becomes
disabled (while "File - Save As..." remains enabled).  Single-click into the
"Outer Writer" part (to switch the embedded Calc back to non-edit mode), and
the "Save As" icon erroneously remains disabled.

This worked in LO 5.1 (randomly tested some local LO 5.1.2 build); the
disabling of the icon happens in

>     if ( !m_bReadOnly )
>         pToolBox->EnableItem( nId, rEvent.IsEnabled );

in SaveToolbarController::statusChanged
(framework/source/uielement/popuptoolbarcontroller.cxx) as added with
<https://cgit.freedesktop.org/libreoffice/core/commit/?id=011128aa9493a680c3e9da6d074f125a90ec455c>
"SaveToolbarController: back to using XStorable".

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to