Skip to content

Commit cc0c2b1

Browse files
committedFeb 20, 2013
Fix crash when loading a project that hits a group box with 'collapse' set
1 parent 0fbea19 commit cc0c2b1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎src/gui/qgscollapsiblegroupbox.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,10 @@ void QgsCollapsibleGroupBoxBasic::setCollapsed( bool collapse )
375375
setFlat( collapse );
376376

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

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

0 commit comments

Comments
 (0)
Please sign in to comment.