<table><tr><td style="">rthomsen created this revision.<br />rthomsen added a reviewer: elvisangelaccio.<br />rthomsen added a project: Ark.<br />Herald added subscribers: Ark, kde-utils-devel.<br />rthomsen requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D21403">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Commit <a href="https://phabricator.kde.org/R36:ce2f7f6690be1e5165ec1300affeabd5cc146e31" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">ce2f7f6690be1e5165ec1300affeabd5cc146e31</a> fixed progress info for <tt style="background: #ebebeb; font-size: 13px;">CreateJob</tt> for the CLI-plugins. However, it still doesn't work for <tt style="background: #ebebeb; font-size: 13px;">libzipplugin</tt> and <tt style="background: #ebebeb; font-size: 13px;">libarchiveplugin</tt> (see bug <a href="https://bugs.kde.org/show_bug.cgi?id=402824" class="remarkup-link" target="_blank" rel="noreferrer">402824</a>). This seems to be caused by these plugins being run in a separate thread and the <tt style="background: #ebebeb; font-size: 13px;">progress</tt> signal not reaching the slot in the receivers thread. This is fixed by using <tt style="background: #ebebeb; font-size: 13px;">Qt::DirectConnection</tt> in the <tt style="background: #ebebeb; font-size: 13px;">connect</tt> call.</p>
<p>Questions:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">Is this the correct way to solve the problem?</li>
<li class="remarkup-list-item">Should this connection type be used for any of the other signals?</li>
</ul></div></div><br /><div><strong>TEST PLAN</strong><div><p>Create a large archive with <tt style="background: #ebebeb; font-size: 13px;">libzipplugin</tt> and <tt style="background: #ebebeb; font-size: 13px;">libarchiveplugin</tt> by using the <tt style="background: #ebebeb; font-size: 13px;">-t <archivename></tt> switch. Verify that progress info is working.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R36 Ark</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D21403">https://phabricator.kde.org/D21403</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>kerfuffle/jobs.cpp</div></div></div><br /><div><strong>To: </strong>rthomsen, elvisangelaccio<br /><strong>Cc: </strong>kde-utils-devel, Ark, tctara<br /></div>