[Bug 79794] KDevelop 3.0.2 crashes when opening a .ui file.

Jens Dagerbo jens.dagerbo at swipnet.se
Sun Apr 18 21:47:05 UTC 2004


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
      
http://bugs.kde.org/show_bug.cgi?id=79794      
jens.dagerbo swipnet se changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From jens.dagerbo swipnet se  2004-04-18 21:45 -------
CVS commit by dagerbo: 

Don't crash when there is no preferred handler for application/x-designer 
 
CCMAIL: 79794-done bugs kde org 


  M +1 -1      partcontroller.cpp   1.111.2.4


--- kdevelop/src/partcontroller.cpp  #1.111.2.3:1.111.2.4
 @ -299,5 +299,5  @ void PartController::editDocument(const 
   {
     KService::Ptr preferredApp = KServiceTypeProfile::preferredService( mimeType, "Application" );
-    if ( preferredApp->desktopEntryName() == "designer" )
+    if ( preferredApp && preferredApp->desktopEntryName() == "designer" )
     {
       KRun::runURL(url, mimeType);




More information about the KDevelop-devel mailing list