Bug 74077

Summary: "Archive and encrypt" action uses wrong extension
Product: [Applications] kgpg Reporter: Christopher Smith <bugzilla>
Component: generalAssignee: bj
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description Christopher Smith 2004-02-03 21:11:59 UTC
Version:            (using KDE KDE 3.2.0)
Installed from:    SuSE RPMs
OS:          Linux

When right-clicking on a directory and using the "archive and encrypt" action, selecting bzip2 compression causes the resulting temporary tarball to have the extension .tar.gz instead of .tar.bz2; the final .pgp file is, however, correctly named.
Comment 1 bj 2004-02-06 14:22:18 UTC
Subject: kdeutils/kgpg

CVS commit by mardelle: 

fix #74077 
 
CCMAIL:74077-done@bugs.kde.org 


  M +1 -1      kgpg.cpp   1.126


--- kdeutils/kgpg/kgpg.cpp  #1.125:1.126
@@ -115,5 +115,5 @@ void MyView::encryptDroppedFolder()
 {
         compressionScheme=0;
-        kgpgfoldertmp=new KTempFile(QString::null,".tar.gz");
+        kgpgfoldertmp=new KTempFile(QString::null);
         kgpgfoldertmp->setAutoDelete(true);
         if (KMessageBox::warningContinueCancel(0,i18n("<qt>KGpg will now create a temporary archive file:<br><b>%1</b> to process the encryption. The file will be deleted after the encryption is finished.</qt>").arg(kgpgfoldertmp->name()),i18n("Temporary File Creation"),KStdGuiItem::cont(),"FolderTmpFile")==KMessageBox::Cancel)