Skip to content
Permalink
Browse files
Fix crash when loading a project that hits a group box with 'collapse…
…' set
  • Loading branch information
dakcarto committed Feb 20, 2013
1 parent 0fbea19 commit cc0c2b1853d1608a43845b05dd9677b6eb8f03db
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/gui/qgscollapsiblegroupbox.cpp
@@ -375,7 +375,10 @@ void QgsCollapsibleGroupBoxBasic::setCollapsed( bool collapse )
setFlat( collapse );

// avoid flicker in X11
QApplication::processEvents();
// NOTE: this causes app to crash when loading a project that hits a group box with
// 'collapse' set via dynamic property or in code (especially if auto-launching project)
// TODO: find another means of avoiding the X11 flicker
// QApplication::processEvents();

// handle QPushButtons in form layouts that stay visible on collapse (Qt bug)
// set flat on collapse for fix, but preserve button's flat value when expanding

0 comments on commit cc0c2b1

Please sign in to comment.