Bug 73025

Summary: expand text (ctrl+J) crashes kdevelop
Product: [Applications] kdevelop Reporter: tnagy <tnagy256>
Component: abbreviation pluginAssignee: KDevelop Developers <kdevelop-devel>
Status: RESOLVED FIXED    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: patch

Description tnagy 2004-01-20 13:16:25 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
OS:          Linux

Create or open a project, edit a file or two, close the project. Now try "view"->"expand text" or ctrl+j (crash).
Comment 1 Jens Dagerbo 2004-01-20 13:49:53 UTC
Created attachment 4253 [details]
patch

This could be done much nicer, but hardly with less code.. :)
Comment 2 Jens Dagerbo 2004-01-20 19:30:01 UTC
Subject: kdevelop/parts/abbrev

CVS commit by dagerbo: 

Quck fix for bug 73025.

CCMAIL: 73025@bugs.kde.org


  M +4 -0      abbrevpart.cpp   1.42


--- kdevelop/parts/abbrev/abbrevpart.cpp  #1.41:1.42
@@ -470,5 +470,9 @@ void AbbrevPart::slotActivePartChanged( 
 
     if( !doc || !part->widget() || doc == docIface  )
+    {
+        actionCollection()->action( "edit_expandtext" )->setEnabled( false );
+        actionCollection()->action( "edit_expandabbrev" )->setEnabled( false );
         return;
+    }
 
     docIface = doc;


Comment 3 Jens Dagerbo 2004-01-20 19:44:50 UTC
Fixed in HEAD. Should be backported to KDE_3_2_BRANCH.