Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 cc0c2b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/gui/qgscollapsiblegroupbox.cpp
Expand Up @@ -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
Expand Down

0 comments on commit cc0c2b1

Please sign in to comment.