Bug 74077 - "Archive and encrypt" action uses wrong extension
Summary: "Archive and encrypt" action uses wrong extension
Status: RESOLVED FIXED
Alias: None
Product: kgpg
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: bj
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-03 21:11 UTC by Christopher Smith
Modified: 2004-02-06 14:22 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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)