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

List:       kde-commits
Subject:    KDE/kdepim/messagecomposer
From:       Laurent Montel <montel () kde ! org>
Date:       2010-11-26 12:45:37
Message-ID: 20101126124537.C2204AC8A2 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1200984 by mlaurent:

Test pointer


 M  +2 -2      attachmentcontrollerbase.cpp  


--- trunk/KDE/kdepim/messagecomposer/attachmentcontrollerbase.cpp #1200983:1200984
@@ -628,7 +628,7 @@
 
   dialog->okButton()->setGuiItem( KGuiItem( i18n("&Attach"), QLatin1String( "document-open" ) ) );
   dialog->setMode( KFile::Files );
-  if( dialog->exec() == KDialog::Accepted ) {
+  if( dialog->exec() == KDialog::Accepted && dialog ) {
     const KUrl::List files = dialog->selectedUrls();
     foreach( const KUrl &url, files ) {
       KUrl urlWithEncoding = url;
@@ -682,7 +682,7 @@
       false /* no remember choice box */,
       d->wParent, "attach public key selection dialog" );
 
-  if( dialog->exec() == KDialog::Accepted ) {
+  if( dialog->exec() == KDialog::Accepted && dialog ) {
     exportPublicKey( dialog->fingerprint() );
   }
   delete dialog;
[prev in list] [next in list] [prev in thread] [next in thread] 

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