Skip to content

Commit

Permalink
[gui] Fix triple-modal issue on Mac for point displacement dialog
Browse files Browse the repository at this point in the history
- 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 2af87f3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gui/symbology-ng/qgspointdisplacementrendererwidget.cpp
Expand Up @@ -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 );
Expand Down

0 comments on commit 2af87f3

Please sign in to comment.