Bug 363432

Summary: appstream url leaves loading page in page stack
Product: [Applications] Discover Reporter: Harald Sitter <sitter>
Component: discoverAssignee: Aleix Pol <aleixpol>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.6.4   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: gif video

Description Harald Sitter 2016-05-23 14:43:30 UTC
When opening an upstream url
> appstream://org.kde.konsole.desktop
discover displays a 'Loading' page while it is looking for the application. This loading page is left in the page stack after loading has finished, so using the back button brings you back to the loading page.

Reproducible: Always

Steps to Reproduce:
1. open urly
2. wait for loading
3. go back


Expected Results:  
Loading page should not be there.

Instead:
- if discover was open already back should bring you back to what was displayed before
- if it wasn't open before back shouldn't do anything (or bring you to the main page maybe)
Comment 1 Harald Sitter 2016-05-23 14:46:29 UTC
Created attachment 99142 [details]
gif video
Comment 2 Aleix Pol 2016-05-24 12:58:35 UTC
Git commit 5fbf870463df1489792c56d8d5e22a36ab66725b by Aleix Pol.
Committed on 24/05/2016 at 12:50.
Pushed by apol into branch 'master'.

Test going up from explicitly loaded resource

M  +1    -0    discover/autotests/appstreamUrl.qml

http://commits.kde.org/discover/5fbf870463df1489792c56d8d5e22a36ab66725b
Comment 3 Aleix Pol 2016-05-24 12:58:35 UTC
Git commit 70b052a38ff416887364cb2f03bd0a69ab5c33e1 by Aleix Pol.
Committed on 24/05/2016 at 12:48.
Pushed by apol into branch 'Plasma/5.6'.

Restore the initial page after loading is over

M  +12   -3    discover/qml/DiscoverWindow.qml

http://commits.kde.org/discover/70b052a38ff416887364cb2f03bd0a69ab5c33e1