wilder-work
Montel Laurent 11 years ago
parent fcb754d89e
commit 41f850e435
  1. 2
      editor/kmcomposewin.cpp
  2. 4
      kmkernel.cpp

@ -3532,7 +3532,7 @@ void KMComposeWin::charSelected(const QChar &c)
void KMComposeWin::slotSaveAsFile()
{
QPointer<KFileDialog> dlg = new KFileDialog(KUrl(), QString(), this);
QPointer<KFileDialog> dlg = new KFileDialog(QUrl(), QString(), this);
dlg->setOperationMode(KFileDialog::Saving);
dlg->setConfirmOverwrite(true);
if (mComposerBase->editor()->textMode() == KMeditor::Rich) {

@ -563,7 +563,7 @@ int KMKernel::openComposer(const QString &to, const QString &cc,
msg->subject()->fromUnicodeString(subject, "utf-8");
}
KUrl messageUrl = KUrl(messageFile);
QUrl messageUrl = QUrl::fromLocalFile(messageFile);
if (!messageUrl.isEmpty() && messageUrl.isLocalFile()) {
QFile f(messageUrl.toLocalFile());
QByteArray str;
@ -883,7 +883,7 @@ QDBusObjectPath KMKernel::newMessage(const QString &to,
const QString & /*messageFile*/,
const QString &_attachURL)
{
KUrl attachURL(_attachURL);
QUrl attachURL = QUrl::fromLocalFile(_attachURL);
KMime::Message::Ptr msg(new KMime::Message);
QSharedPointer<FolderCollection> folder;
uint id = 0;

Loading…
Cancel
Save