Skip to content
Permalink
Browse files

[gui] Fix triple-modal issue on Mac for point displacement dialog

- Ensure initial dialog is a 'sheet' or gui will freeze after closing next opened modal (new color) dialog
  • Loading branch information
dakcarto committed Aug 31, 2013
1 parent 0489757 commit 2af87f3d10d4f2ab1d0194e47bb135fc74ed9c3a
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/gui/symbology-ng/qgspointdisplacementrendererwidget.cpp
@@ -180,7 +180,12 @@ void QgsPointDisplacementRendererWidget::on_mRendererSettingsButton_clicked()
if ( mEmbeddedRendererWidget )
{
//create a dialog with the embedded widget
#ifdef Q_WS_MAC
QDialog* d = new QDialog( this->window() );
d->setWindowModality( Qt::WindowModal );
#else
QDialog* d = new QDialog();
#endif
QGridLayout* layout = new QGridLayout( d );
mEmbeddedRendererWidget->setParent( d );
QDialogButtonBox* buttonBox = new QDialogButtonBox( d );

0 comments on commit 2af87f3

Please sign in to comment.
You can’t perform that action at this time.