Bug 494018 - Difficult to edit a search term in Dolphin, trailing spaces removed as you type
Summary: Difficult to edit a search term in Dolphin, trailing spaces removed as you type
Status: CONFIRMED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR major
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2024-10-03 06:01 UTC by tagwerk19
Modified: 2024-11-01 21:08 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tagwerk19 2024-10-03 06:01:58 UTC
SUMMARY: 
    If type several search terms into Dolphin's search box it trim trailing spaces as you
    type. If you type "one two" you get "onetwo" or occasionally "one two three" you
    get "one twothree".

    Applies to baloosearch when searching for content.

STEPS TO REPRODUCE:
1...
    Move to a folder indexed by Baloo, select "Content" search and "From here" 

2...
    Type a search phrase such as "one two three" 

3...
    Look at what you've just typed...

OBSERVED RESULT:
    Dolphin will trim trailing spaces as you type, refreshing the search box and window
    title. It's possible, with care, to cursor back and forth in your typed phrase and
    insert the spaces again.

EXPECTED RESULT:
    Don't prematurely trim trailing spaces, it seems likely that the something is
    trying to sanitise the input as it passes it to the search provider but this should
    not overwrite the search terms as the user is typing them. 

SOFTWARE/OS VERSIONS:
    Neon Unstable
    Dolphin: 24.11.70
    Plasma: 6.1.90
    Frameworks: 6.7.0
    Qt: 6.7.2

ADDITIONAL INFORMATION:
    This is probably a regression, wasn't there in KF5. It happens on both Wayland and X.

    It may be that it needs to be moved somewhere else, it's not an issue with
    Dolphin per se...
Comment 1 TraceyC 2024-11-01 21:08:45 UTC
I'm able to reproduce this in git-master
Note, if I type "one two three" quickly, spaces aren't trimmed. If I type "one ", wait a second and start typing "two", the space is removed
The showing of "Query Results" corresponds with the removal of the space.