Bug 56622 - Crash when opening popup menu
Summary: Crash when opening popup menu
Status: RESOLVED FIXED
Alias: None
Product: calligrastage
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Laurent Montel
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-30 15:50 UTC by T Zachmann
Modified: 2003-12-14 19:53 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
backtrace of crash (2.38 KB, text/plain)
2003-03-30 15:53 UTC, T Zachmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description T Zachmann 2003-03-30 15:50:30 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
OS:          Linux

Hello,

I found a bug when opening a popup menu.

To reproduce:

- create a new empty document
- create an object e.g. line
- use right mouse button on object so that you get the popup menu
- close the ducument with Ctrl-W (do not close kpresenter)
- create again a new document
- create an object again.
- use right mouse button on object to get popup menu
  -> crash

It also happens for popup menus in the taskbar. I look at the code and I think it is connected to the factory as with the popup menu for the backround the problem does not occur.

The problem occurs in kpresenter 1.2.1 and in CVS Head.

If you need more information dont hesitate to contact me.

Thorsten
Comment 1 T Zachmann 2003-03-30 15:53:12 UTC
Created attachment 1272 [details]
backtrace of crash
Comment 2 David Faure 2003-04-01 15:45:01 UTC
Subject: koffice/kpresenter

CVS commit by faure: 

Don't disconnect _all_ signals. This includes destroyed(), so QGuardedPtrs
don't get notified!
CCMAIL: 56622-done@bugs.kde.org


  M +4 -3      kprcanvas.cc   1.346


--- koffice/kpresenter/kprcanvas.cc  #1.345:1.346
@@ -162,7 +162,8 @@ KPrCanvas::KPrCanvas( QWidget *parent, c
 KPrCanvas::~KPrCanvas()
 {
-// disconnect all signals to avoid crashes on exit
-    // (exitEditMode) emits signals
-    disconnect( this, 0, 0, 0 );
+    // disconnect signals to avoid crashes on exit
+    // (exitEditMode emits signals)
+    disconnect( this, SIGNAL( updateSideBarItem(int) ), 0, 0 );
+    disconnect( this, SIGNAL( objectSelectedChanged() ), 0, 0 );
 
     // deactivate possible opened textobject to avoid double deletion, KPTextObject deletes this already