Bug 162338 - unwanted appear (shows) previous search result DIALOG when libreoffice calc's sheets "PROTECTED" or opened calc documents "AS READ ONLY"
Summary: unwanted appear (shows) previous search result DIALOG when libreoffice calc's...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
4.3.0.4 release
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: Find-Search Find&Replace-Dialog
  Show dependency treegraph
 
Reported: 2024-08-03 23:12 UTC by forubuntu333
Modified: 2024-09-11 16:05 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
test for this bug (9.56 KB, application/vnd.oasis.opendocument.spreadsheet)
2024-08-28 15:37 UTC, Diane
Details

Note You need to log in before you can comment on or make changes to this bug.
Description forubuntu333 2024-08-03 23:12:31 UTC
Description:
when the sheets of calc document in LibreOffice were protected and i use "find and repace tool" for finding a word or statement in all sheets (all sheets option is selected) - after showing result Dialog and i close it. and then close "FIND AND REPLACE DIALOG" suddenly previous search result appear again (unwanted) .i close it and click on "find and replace" icon on toolbar again suddenly previous search result appear again (unwanted).
this bug appearing too when i opens calc document AS READ ONLY .

Actual Results:
1-create 3 sheets and in all of them type some words.
2-then PROTECT all sheets.
3-click on the "find and replace" icon and type on of word that included of sheets.and select "ALL SHEETS " option and click on "find all" button.
4-when search result dialog appears.close it
5-close find and replace dialog
6-wow! search result dialog that you closed it before. unwanted appears again!

when i close it again and click on "find and replace" icon .
previous search result appears again!


Expected Results:
when no sheets protected.this problem not appear.
but if calc document opens AS READ ONLY or ALL SHEETS PROTECTED
this problem appears
whereas this problem  should not happen whether sheets protected or not.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 24.2.5.2 (X86_64) / LibreOffice Community

CPU threads: 4; OS: Linux 6.1; UI render: default; VCL: gtk3
 UI: en-US
Calc: threaded
Comment 1 Diane 2024-08-28 15:37:33 UTC
Created attachment 196068 [details]
test for this bug
Comment 2 Diane 2024-08-28 15:43:21 UTC
Hello forubuntu333,

Thank you for reporting the bug. I can confirm that the bug is present in both versions 24.8 and 25.2(dev) builds.

24.8: create t162338.ods, 3 sheets, protect them all (pw: test)
find "ten" - click "all sheets"
replace "eleven"
click "find all"
The search results popup may be hidden behind the "Find and replace" dialog
Move the dialog to reveal the search results popup. (It correctly shows Sheet 3, cell $D$3)
Close the Search results popup.
Close the "Find and replace" dialog
Indeed the Search results popup reappears.
Also reproduced in 25.2 (dev) build.
Comment 3 ady 2024-08-28 16:44:53 UTC
Using attachment 196068 [details], repro in LO 4.2.8 but not in 4.2.0 (so, possibly a back-port from 4.3).

JIC and FTR, when performing multiple search actions, sometimes users want the results to be preserved in some way or another. Care should be taken so as not to introduce undesired effects when/if correcting this relatively minor issue.
Comment 4 Buovjaga 2024-09-11 16:05:44 UTC
There is an annoying intermediate state, where the result dialog instantly closes after appearing. I bibisected this with win32-4.3 to 0ffe4358c755504bc2754ef88edadde33b5f395a
fdo#75970: Let's do it in a straightforward fashion.

So that's referring to bug 75970.

Then, the current state began with 0f867f052d2672fdb91ee3be9e056ae97a8e642c
fdo#79011: Properly implement the search results dialog as modeless.

So bug 79011.

Windows repo used by chance, at first it seemed like it would have a cleaner path to a result than the Linux ones.