Bug 465513 - Command bar shows last filtered items when reopened with empty input text.
Summary: Command bar shows last filtered items when reopened with empty input text.
Status: RESOLVED FIXED
Alias: None
Product: Merkuro
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Claudio Cambra
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-09 17:10 UTC by infiniteverma
Modified: 2023-02-16 18:05 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Typing asdf and reopening command bar. (9.24 KB, image/png)
2023-02-09 17:10 UTC, infiniteverma
Details

Note You need to log in before you can comment on or make changes to this bug.
Description infiniteverma 2023-02-09 17:10:28 UTC
Created attachment 156106 [details]
Typing asdf and reopening command bar.

If we filter commands from the command bar and reopen it later, the last filtered items remain not the whole list. Pressing any character then renders the whole list. 

STEPS TO REPRODUCE
1. Open command bar (View -> Open Command Bar) and enter "View". This filters all commands with "View"
2. Close it
3. Reopen it

OBSERVED RESULT
The textbox is empty ("view" string is gone) but the filtered commands are shown still. 

EXPECTED RESULT
All commands should be shown OR the input text should load with last entered string.

It's weirder if we enter something random (say "asdf") and close it. If we reopen, no commands are listed at first. 

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Neon
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.8
Comment 1 infiniteverma 2023-02-09 17:10:55 UTC
I'd like to work on this.
Comment 2 Bug Janitor Service 2023-02-11 15:06:16 UTC
A possibly relevant merge request was started @ https://invent.kde.org/pim/kalendar/-/merge_requests/306
Comment 3 Claudio Cambra 2023-02-16 18:05:25 UTC
Git commit 70c78e4f203d0b7395469b3281691ebf99f1c252 by Claudio Cambra, on behalf of Anant Verma.
Committed on 16/02/2023 at 18:05.
Pushed by clau-cambra into branch 'master'.

show the previous searched text on reopening command bar

M  +6    -1    src/contents/ui/Dialogs/KQuickCommandBarPage.qml

https://invent.kde.org/pim/kalendar/commit/70c78e4f203d0b7395469b3281691ebf99f1c252