Summary: | kmail crashed using DCOP | ||
---|---|---|---|
Product: | [Applications] kmail | Reporter: | Giovanni Venturi <giovanni> |
Component: | general | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | crash | ||
Priority: | NOR | ||
Version: | 1.5.1 | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Giovanni Venturi
2003-04-03 00:43:25 UTC
Subject: kdepim/kmail CVS commit by zrusin: Crash fix. Do not try to schedule a non-existing job (job created with a malformed url). CCMAIL: 56770-done@bugs.kde.org M +0 -2 imapjob.cpp 1.9 M +6 -0 kmcomposewin.cpp 1.688 --- kdepim/kmail/imapjob.cpp #1.8:1.9 @@ -229,6 +229,4 @@ void ImapJob::slotGetMessageResult( KIO: msg->setComplete( TRUE ); emit messageRetrieved(msg); - } else { - emit finished(); } msg = 0; --- kdepim/kmail/kmcomposewin.cpp #1.687:1.688 @@ -3682,4 +3682,10 @@ QCString KMComposeWin::pgpProcessedMsg(v void KMComposeWin::addAttach(const KURL aUrl) { + if ( aUrl.isMalformed() ) { + KMessageBox::sorry( 0, i18n( "<qt><p>KMail couldn't recognize the location of the attatchment (%1).</p>" + "<p>You have to specify the full path if you wish to attach a file.</p></qt>" ) + .arg( aUrl.prettyURL() ) ); + return; + } KIO::TransferJob *job = KIO::get(aUrl); KIO::Scheduler::scheduleJob( job ); |