<table><tr><td style="">papoteur created this revision.<br />papoteur added a reviewer: Ark.<br />papoteur added a project: Ark.<br />Herald added a subscriber: kde-utils-devel.<br />papoteur 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/D27181">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>This patch is for solving:<br />
Bug 403146 - Extracting suggests replacement file with info of destination file<br />
I have tested with ark 19.04.0. It allows to have size and date of the source file from the archive, not the destination information.<br />
The modifications are :</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">call overwriteQuery with the entry, not only the entry name.</li>
<li class="remarkup-list-item">overloading the overwriteQuery to accept the entry.</li>
<li class="remarkup-list-item">in case of call with query, call renameDialog with the name without formatting it with fromLocalFile, and adding date and size of the source, read from entry.</li>
</ul>

<p>When QUrl is not a local file in renameDialog, displayed value are from the parameters passed with the call.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Create an archive.<br />
Modify a file which copy is in the archive<br />
Open it with ark, extract the archive at the same location. A dialog opens to replace the file. At left, the information (date, size) should be the information before modification, and at right, from the modified file.<br />
Extract or not.</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/D27181">https://phabricator.kde.org/D27181</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>kerfuffle/CMakeLists.txt<br />
kerfuffle/queries.cpp<br />
kerfuffle/queries.h<br />
plugins/libarchive/libarchiveplugin.cpp</div></div></div><br /><div><strong>To: </strong>papoteur, Ark<br /><strong>Cc: </strong>kde-utils-devel, fbampaloukas, tctara<br /></div>