Bug 318501 - Search result completer stops working after one or more attempts
Summary: Search result completer stops working after one or more attempts
Status: RESOLVED WORKSFORME
Alias: None
Product: marble
Classification: Applications
Component: general (show other bugs)
Version: 1.5 (KDE 4.10)
Platform: Other Linux
: NOR major
Target Milestone: ---
Assignee: marble-bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-17 12:06 UTC by Bernhard Beschow
Modified: 2021-04-02 07:49 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernhard Beschow 2013-04-17 12:06:23 UTC
When searching for "Karlsruhe" (without pressing Enter afterwards, i.e. not triggering a network request), it's possible to click on the search result and be taken to Karlsruhe. When searching further for "Berlin" (again w/o hitting Enter afterwards), clicking on a search result does not take one to Berlin.

Reproducible: Always

Steps to Reproduce:
1. Type "Karlsruhe" into search field w/o hitting Enter -> a result list pops up
2. Select Karlsruhe from the list pop up -> Marble jumps to Karlsruhe
3. Overwrite the search field with "Berlin" w/o hitting Enter -> a result list pops up
Actual Results:  
Clicking the search result doesn't take one to Berlin. Hitting Enter performs a network search.

Expected Results:  
Clicking the search result OR selecting the search result and hitting Enter should take one to Berlin. A network request should not be made.

I believe this regression was introduced when the search field was moved to the toolbar.
Comment 1 Dennis Nienhüser 2013-04-21 17:22:52 UTC
I can reproduce that, although it does not happen always on the first attempt here. Sometimes several completions work fine in a row. The problem is that the completer stops emitting the activated() signal.

I looked into MarbleLineEdit to see if its mouseReleaseEvent interferes, but found nothing suspicious. Another possible error source could be modifications to MarblePlacemarkModel which somehow invalidate model indices in the proxy model chain. Then again a simple completion should not trigger a search at all, hence not modify MarblePlacemarkModel or the shared tree model.
Comment 2 Justin Zobel 2021-03-09 22:51:36 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.