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

            Bug ID: 123227
           Summary: "'Save as' has failed"-event is not called if the user
                    saves to the original file
           Product: LibreOffice
           Version: 6.1.3.2 release
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: BASIC
          Assignee: [email protected]
          Reporter: [email protected]

Description:
I want to guide the user in a special case where saving fails in our
environment. I assigned a macro to "'Save as' has failed"-event, in the case
the user tries to "Save as" the document to the original file, the event is not
triggered.

I assume in that case LibreOffice will switch to the save-codepath where the
event is not triggered.

Steps to Reproduce:
1. Create a sub

Sub MyEvent(Event As Object)
        MsgBox "hello"
End Sub

2. Tools > Macros > Organize Macros > LibreOffice Basic...
3. Assign > Events > "'Save as' has failed"
4. Macro...
5. Select the MyEvent Sub
6. Save the document somewhere
7. Make the document readonly (chmod 444 doc.odt)
8. "Save as..." select the same location and filename as in step 6.

Actual Results:
Error message, but the "'Save as' has failed"-event is not triggered

Expected Results:
Error message + "'Save as' has failed"-event 


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 6.1.4.2
Build ID: 6.1.4.2-1.fc29
CPU threads: 4; OS: Linux 4.20; UI render: default; VCL: gtk3; 
Locale: en-US (en_US.UTF-8); Calc: group threaded

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

Reply via email to