Merged revisions 938202 via svnmerge from

svn+ssh://tmcguire@svn.kde.org/home/kde/branches/KDE/4.2/kdepim

........
  r938202 | tmcguire | 2009-03-11 15:15:49 +0100 (Wed, 11 Mar 2009) | 10 lines
  
  Backport r935825 by marten from trunk to the 4.2 branch:
  
  Use KMimeType::extractKnownExtension() when linking an attachment file
  to open, so that it will use the intended file association. 
  
  For example, open a .tar.gz attachment as a .tar.gz file, not as a .gz
  
  CCBUG:184459
........

svn path=/branches/kdepim/enterprise4/kdepim/; revision=938309
wilder-work
Thomas McGuire 17 years ago
parent 52d711622f
commit ac4007b026
  1. 2
      kmcommands.cpp

@ -2942,7 +2942,7 @@ QString KMHandleAttachmentCommand::createAtmFileLink() const
KTemporaryFile *linkFile = new KTemporaryFile();
linkFile->setPrefix(atmFileInfo.fileName() +"_[");
linkFile->setSuffix("]."+ atmFileInfo.suffix());
linkFile->setSuffix( "]." + KMimeType::extractKnownExtension( atmFileInfo.fileName() ) );
linkFile->open();
QString linkName = linkFile->fileName();
delete linkFile;

Loading…
Cancel
Save