Bug 359147

Summary: Ark process hangs if no plugin could be found to create a new archive
Product: [Applications] ark Reporter: Elvis Angelaccio <elvis.angelaccio>
Component: generalAssignee: Elvis Angelaccio <elvis.angelaccio>
Status: RESOLVED FIXED    
Severity: crash CC: rakuco
Priority: NOR    
Version First Reported In: 15.12.1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 15.12.2
Sentry Crash Report:

Description Elvis Angelaccio 2016-02-08 19:21:39 UTC
See below.

Reproducible: Always

Steps to Reproduce:
1. Make sure that e.g. 'rar' is not installed
2. ark --changetofirstpath --add --autofilename rar foo.txt

Actual Results:  
Ark process hangs after displaying the error message.

Expected Results:  
Ark process should quit after displaying the error message.
Comment 1 Elvis Angelaccio 2016-02-09 15:04:02 UTC
Git commit 302f86db350aa270094f8db73c3eda8451fc2811 by Elvis Angelaccio.
Committed on 09/02/2016 at 14:58.
Pushed by elvisangelaccio into branch 'Applications/15.12'.

Properly finish AddToArchive jobs

Currently Ark hangs when AddToArchive::slotStartJob() returns before having
started the underlying AddJob.
Calling emitResult() before calling 'return' fixes the issue.
FIXED-IN: 15.12.2

M  +6    -4    kerfuffle/addtoarchive.cpp

http://commits.kde.org/ark/302f86db350aa270094f8db73c3eda8451fc2811