Bug 279862

Summary: When packing a single folder - its name is not included in the archive name
Product: [Applications] ark Reporter: Victor Varvaryuk <victor.varvariuc>
Component: generalAssignee: Raphael Kubo da Costa <rakuco>
Status: RESOLVED FIXED    
Severity: normal Keywords: junior-jobs
Priority: NOR    
Version: 2.16   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 4.7.1
Sentry Crash Report:
Attachments: Empty suggested archive name - only the extension

Description Victor Varvaryuk 2011-08-11 06:04:17 UTC
Created attachment 62742 [details]
Empty suggested archive name - only the extension

Version:           2.16 (using KDE 4.7.0) 
OS:                Linux

Version 2.17
When i select a folder to compress [Context Menu -> Compress ->
Compress to...] Ark opens a dialog suggesting the name of the archive -
only the extension, while it should be the name of the folder.


Reproducible: Always

Steps to Reproduce:
If i select a folder named 'Test' to pack and call [Context Menu -> Compress ->
Compress to...] Ark opens a dialog suggesting the name of the archive equal '.7z'.


Expected Results:  
If i select a folder to pack and call [Context Menu -> Compress ->
Compress to...] Ark should open a dialog suggesting the name of the archive equal to the name of the folder.
Comment 1 Raphael Kubo da Costa 2011-08-11 12:22:16 UTC
SVN commit 1246402 by rkcosta:

Account for the case when the only selected file is a directory.

So far we were only calling QFileInfo::baseName(), which returned an
empty string for directories.

BUG: 279862
FIXED-IN: 4.7.1

 M  +5 -2      adddialog.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1246402
Comment 2 Raphael Kubo da Costa 2011-08-11 12:23:18 UTC
SVN commit 1246403 by rkcosta:

Account for the case when the only selected file is a directory.

So far we were only calling QFileInfo::baseName(), which returned an
empty string for directories.

Forwardport of r1246402.

CCBUG: 279862

 M  +5 -2      adddialog.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1246403