mimetype() moved up to TransferJob now, so that this nasty downcast can be fixed

svn path=/trunk/KDE/kdepim/; revision=624125
wilder-work
David Faure 19 years ago
parent ccbbe76d09
commit 05ad4a7b14
  1. 2
      kmcomposewin.cpp

@ -2590,7 +2590,7 @@ void KMComposeWin::slotAttachFileResult(KJob *job)
KCursorSaver busy(KBusyPtr::busy());
QString name( (*it).url.fileName() );
// ask the job for the mime type of the file
QString mimeType = static_cast<KIO::MimetypeJob*>(job)->mimetype();
QString mimeType = static_cast<KIO::TransferJob*>(job)->mimetype();
if ( name.isEmpty() ) {
// URL ends with '/' (e.g. http://www.kde.org/)

Loading…
Cancel
Save