Bug 73025 - expand text (ctrl+J) crashes kdevelop
Summary: expand text (ctrl+J) crashes kdevelop
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: abbreviation plugin (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-20 13:16 UTC by tnagy
Modified: 2004-11-21 04:34 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
patch (667 bytes, patch)
2004-01-20 13:49 UTC, Jens Dagerbo
Details

Note You need to log in before you can comment on or make changes to this bug.
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.