Version: unspecified (using KDE 4.6.0) OS: Linux oxygenstyle.cpp bool Style::drawIndicatorButtonDropDownPrimitive( const QStyleOption* option, QPainter* painter, const QWidget* widget ) const crash line 3764 because tool is null (and there's no check if it's null). if( tool->popupMode()==QToolButton::MenuButtonPopup ) So possible fix is if (tool && tool->popupMode()==QToolButton::MenuButtonPopup ) Reproducible: Always Steps to Reproduce: Try to draw an CC_ToolButton on simple QWidget
Hello Zeljan, you're absolutely correct. Fixing now. Sorry for the trouble.
Git commit 375112824488df9a827a498b512eabeb5ce0deaf by Hugo Pereira Da Costa. Committed on 03/02/11 at 11:44. Pushed by hpereiradacosta into branch 'KDE/4.6'. Check validity of QToolButton cast before testing popupMode() BUG: 265271 M +2 -2 kstyles/oxygen/oxygenstyle.cpp http://commits.kde.org/kde-workspace/375112824488df9a827a498b512eabeb5ce0deaf
... I'll forward port to master as soon as I know how to do that.
Git commit d0090b681db4f18730384c90ff018790b8d63ce9 by Hugo Pereira Da Costa. Committed on 03/02/11 at 11:44. Pushed by hpereiradacosta into branch 'master'. Check validity of QToolButton cast before testing popupMode() BUG: 265271 M +2 -2 kstyles/oxygen/oxygenstyle.cpp http://commits.kde.org/kde-workspace/d0090b681db4f18730384c90ff018790b8d63ce9