[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdereview/mailody/src
From:       Tom Albers <tomalbers () kde ! nl>
Date:       2008-05-31 20:53:49
Message-ID: 1212267229.781312.16862.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 814990 by toma:

Change default. Open the attachment instead of saving it on left click.


 M  +4 -4      composer.cpp  
 M  +2 -4      messageview.cpp  


--- trunk/kdereview/mailody/src/composer.cpp #814989:814990
@@ -1009,11 +1009,11 @@
 
 void Composer::slotSave()
 {
-    kDebug();
+    if ( !m_mailbox.isValid() ) {
+        kWarning() << m_mailbox.name() << " is not valid. Not saving.";
+        return;
+    }
 
-    if ( m_mailbox.isValid() )
-	    return;
-
     SendMessage* toSend = new SendMessage( this );
     addRecipients( toSend );
     toSend->addAttachments( m_attachview->attachments() );
--- trunk/kdereview/mailody/src/messageview.cpp #814989:814990
@@ -442,10 +442,8 @@
         emit openComposer( box, to.mid( 6 ) );
     } else if ( to.startsWith( "attachment:" ) ) {
         QString attachment = to.mid( 11 );
-        QString save = KFileDialog::getSaveFileName( m_currentMessage->attachments().value( attachment ) );
-        if ( save.isEmpty() )
-            return;
-        KIO::NetAccess::file_copy( attachment, save, this );
+        KRun *run = new KRun( attachment, this );
+        run->setRunExecutables( false );
     }
 }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic