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
Created attachment 1272 [details] backtrace of crash
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