Bug 361757

Summary: Archive view should not show the horizontal header when aborting opening a corrupt archive
Product: [Applications] ark Reporter: Elvis Angelaccio <elvis.angelaccio>
Component: generalAssignee: Elvis Angelaccio <elvis.angelaccio>
Status: RESOLVED FIXED    
Severity: normal CC: rakuco, rthomsen6
Priority: NOR Keywords: junior-jobs
Version: 15.12.0   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In: 16.04.3
Sentry Crash Report:

Description Elvis Angelaccio 2016-04-14 09:15:11 UTC
Steps to reproduce:

Reproducible: Always

Steps to Reproduce:
1. Open a corrupt archive
2. Ark will ask you what to do with the archive
3. Abort opening

Actual Results:  
The archive view shows the horizontal header.

Expected Results:  
The archive view should be empty, with no header.
Comment 1 Elvis Angelaccio 2016-07-05 19:12:24 UTC
Git commit 97eb1b3598dcc684c3cc7ec410b8a2e85cf551c8 by Elvis Angelaccio.
Committed on 05/07/2016 at 19:10.
Pushed by elvisangelaccio into branch 'Applications/16.04'.

archivemodel: check for ListJob errors

If a ListJob ends up with an error (e.g. job aborted due to corrupted archive),
we should not add the listed entries in the model.
FIXED-IN: 16.04.3

Differential Revision: D2082

M  +11   -9    part/archivemodel.cpp

http://commits.kde.org/ark/97eb1b3598dcc684c3cc7ec410b8a2e85cf551c8