[Bug 173071] New: Crash at KTextEdit::mousePopupMenu() when using setTextInteractionFlags(Qt::NoTextInteraction)
Philipp Wagner
mail at philipp-wagner.com
Sat Oct 18 00:07:05 CEST 2008
http://bugs.kde.org/show_bug.cgi?id=173071
Summary: Crash at KTextEdit::mousePopupMenu() when using
setTextInteractionFlags(Qt::NoTextInteraction)
Product: kdelibs
Version: 4.1
Platform: SuSE RPMs
OS/Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: kdeui
AssignedTo: kdelibs-bugs at kde.org
ReportedBy: mail at philipp-wagner.com
Version: (using KDE 4.1.2)
Installed from: SuSE RPMs
If you have a KTextEdit created like that:
KTextEdit *kte = new KTextEdit(this);
kte->setTextInteractionFlags(Qt::NoTextInteraction);
and then right-click on the edit field, the method KTextEdit::mousePopupMenu()
gets called
(http://api.kde.org/4.x-api/kdelibs-apidocs/kdeui/html/ktextedit_8cpp-source.html#l00394)
By defining that we want no interaction, Qt returns a NP at
createStandardContextMenu();
The application crashes when calling connect():
QObject::connect: Cannot connect (null)::triggered ( QAction* ) to
KTextEdit::menuActivated( QAction* )
I don't have a recent SVN checkout here to provide a patch, but it should be
done with a simple check for a NP.
--
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Kdelibs-bugs
mailing list