| Summary: | Crash when trying to modify a legend | ||
|---|---|---|---|
| Product: | [Applications] kst | Reporter: | Nicolas Brisset <nicolas.brisset> |
| Component: | general | Assignee: | kst |
| Status: | RESOLVED FIXED | ||
| Severity: | crash | ||
| Priority: | NOR | ||
| Version First Reported In: | 1.x | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Solaris | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Nicolas Brisset
2006-05-31 14:49:53 UTC
SVN commit 546935 by staikos:
Ok now I see how this can happen. Don't allow recursive menus at all. It's too
dangerous.
BUG: 128374
M +4 -1 kstviewwidget.cpp
--- trunk/extragear/graphics/kst/src/libkstapp/kstviewwidget.cpp #546934:546935
@@ -324,7 +324,10 @@
if (_view->mouseGrabber()) {
_view->releaseMouse(_view->mouseGrabber());
}
- assert(!_menu);
+ if (_menu) { // Do not allow recursive menus
+ e->ignore();
+ return;
+ }
_menu = new KPopupMenu(this);
//kstdDebug() << "Querying for the popup" << endl;
bool rc = _view->popupMenu(_menu, e->pos());
|