[Kst] [Bug 124444] Crash when click on where deleted object used to be

Andrew Walker arwalker at sumusltd.com
Tue Mar 28 22:29:24 CEST 2006


It crashes in KstTopLevelView::handlePress(const QPoint& pos, bool shift)
because _focusOn is true but _pressTarget is NULL

On March 28, 2006 11:56 am, George Staikos wrote:
> > BUG:124444 Reset the focus while deleting the selected objects.
> >
> >  M  +3 -0      ksttoplevelview.cpp
> >
> >
> > --- trunk/extragear/graphics/kst/src/libkstapp/ksttoplevelview.cpp
> > #523675:523676 @ -1600,6 +1600,9  @
> >        toBeDeleted.push_front(*it);
> >      }
> >    }
> > +
> > +  clearFocus();
> > +
> >    while (!toBeDeleted.isEmpty()) {
> >      removeChild(toBeDeleted.front());
> >      toBeDeleted.pop_front();
>
>   I can't reproduce this problem, though I don't doubt that the focus needs
> to be cleared.  What does the stacktrace look like?


More information about the Kst mailing list