Set name of saved attachment... maybe needs more work

svn path=/trunk/kdenetwork/kmail/; revision=7372
wilder-work
Sven Radej 28 years ago
parent 8a153fd2c6
commit de5c31be67
  1. 12
      kmreaderwin.cpp

@ -1,6 +1,7 @@
// kmreaderwin.cpp
// Author: Markus Wuebben <markus.wuebben@kde.org>
#include <qdir.h>
#include <kfiledialog.h>
#include <stdlib.h>
#include <sys/stat.h>
@ -35,6 +36,7 @@
#include <qmlined.h>
#include <qregexp.h>
#define hand_width 16
#define hand_height 16
@ -769,13 +771,15 @@ void KMReaderWin::slotAtmSave()
{
KMMessagePart msgPart;
QString fileName, str;
const char *fname =0;
fileName = QDir::currentDirPath();
fileName.append("/");
mMsg->bodyPart(mAtmCurrent, &msgPart);
fname = msgPart.name();
fileName.append(msgPart.name());
debug (fileName.data());
fileName = msgPart.name();
fileName = KFileDialog::getSaveFileName(NULL, "*", this, fname);
fileName = KFileDialog::getSaveFileName(fileName.data(), "*", this);
if(fileName.isEmpty()) return;
kbp->busy();

Loading…
Cancel
Save