<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/D19953">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Progress info is currently broken when creating archives using <tt style="background: #ebebeb; font-size: 13px;">CreateJob</tt>. This happens for example when the user creates an archive through the <tt style="background: #ebebeb; font-size: 13px;">KFileItemAction</tt> in Dolphin.</p>

<p>See <a href="https://bugs.kde.org/show_bug.cgi?id=382599" class="remarkup-link" target="_blank" rel="noreferrer">bug 382599</a>.</p>

<p>This happens because <tt style="background: #ebebeb; font-size: 13px;">CreateJob</tt> uses a nested <tt style="background: #ebebeb; font-size: 13px;">AddJob</tt> and the <tt style="background: #ebebeb; font-size: 13px;">percent</tt> signal of the <tt style="background: #ebebeb; font-size: 13px;">AddJob</tt> is not forwarded to <tt style="background: #ebebeb; font-size: 13px;">CreateJob</tt>. It was necessary to create a new signal <tt style="background: #ebebeb; font-size: 13px;">PercentFromNestedJob</tt> in the <tt style="background: #ebebeb; font-size: 13px;">Job</tt> class because connecting to <tt style="background: #ebebeb; font-size: 13px;">KJob::percent</tt> did not work. I suspect this is caused by <tt style="background: #ebebeb; font-size: 13px;">KJob</tt> also having a public member function <tt style="background: #ebebeb; font-size: 13px;">percent</tt> and Qt confusing the signal and the member function. If it is possible to somehow force Qt to connect to the signal, then the <tt style="background: #ebebeb; font-size: 13px;">PercentFromNestedJob</tt> is not necessary.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Create a sufficiently large archive (e.g. rar archive) from Dolphin using the right-click menu. Observe that progress is correctly shown in system tray.</p>

<p>Alternatively use: <tt style="background: #ebebeb; font-size: 13px;">ark --add-to <archive name> <files to add></tt></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/D19953">https://phabricator.kde.org/D19953</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>kerfuffle/jobs.cpp<br />
kerfuffle/jobs.h</div></div></div><br /><div><strong>To: </strong>rthomsen, elvisangelaccio<br /><strong>Cc: </strong>kde-utils-devel, Ark, tctara<br /></div>