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

List:       kde-commits
Subject:    KDE/kdevelop/plugins/appwizard
From:       Robert Gruber <rgruber () users ! sourceforge ! net>
Date:       2007-12-08 17:55:57
Message-ID: 1197136557.784796.3235.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 746324 by rgruber:

Check if the VcsJob has been set up correctly before we execute it


 M  +8 -3      appwizardplugin.cpp  


--- trunk/KDE/kdevelop/plugins/appwizard/appwizardplugin.cpp #746323:746324
@@ -180,9 +180,14 @@
                 if( job->status() == KDevelop::VcsJob::JobSucceeded )
                 {
                     KDevelop::VcsJob* job = iface->checkout( info.checkoutInformation );
-                    job->exec();
-                    if( job->status() != KDevelop::VcsJob::JobSucceeded )
-                    {
+                    if (job) {
+                        job->exec();
+                        if( job->status() != KDevelop::VcsJob::JobSucceeded )
+                        {
+                            KMessageBox::error(0, i18n("Couldn't checkout imported project"));
+                            return "";
+                        }
+                    } else {
                         KMessageBox::error(0, i18n("Couldn't checkout imported project"));
                         tmpdir.unlink();
                         return "";
[prev in list] [next in list] [prev in thread] [next in thread] 

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