diff --git a/Vates/VatesSimpleGui/QtWidgets/src/RotationPointDialog.cpp b/Vates/VatesSimpleGui/QtWidgets/src/RotationPointDialog.cpp index 2eb29d09a779f4e4c35f754e8d90f52ca3bd5c71..7cf6a5192b63297e05fb4074eee5a70fec3953fa 100644 --- a/Vates/VatesSimpleGui/QtWidgets/src/RotationPointDialog.cpp +++ b/Vates/VatesSimpleGui/QtWidgets/src/RotationPointDialog.cpp @@ -19,6 +19,11 @@ RotationPointDialog::RotationPointDialog(QWidget *parent) : QDialog(parent) { // Gather the coordinates QObject::connect(this->ui.buttonBox, SIGNAL(accepted()), this, SLOT(getCoordinates())); +#ifdef __APPLE__ + // On macOS the dialogs appear behind everything by default. Need to find + // a better fix that this... + setModal(true); +#endif } RotationPointDialog::~RotationPointDialog() {} diff --git a/Vates/VatesSimpleGui/ViewWidgets/src/ColorMapEditorPanel.cpp b/Vates/VatesSimpleGui/ViewWidgets/src/ColorMapEditorPanel.cpp index 772ed014f9b706189725068facd92ab6439838f1..bd22e252879d80fd539d88c803c7c9586aed4f84 100644 --- a/Vates/VatesSimpleGui/ViewWidgets/src/ColorMapEditorPanel.cpp +++ b/Vates/VatesSimpleGui/ViewWidgets/src/ColorMapEditorPanel.cpp @@ -26,6 +26,12 @@ void ColorMapEditorPanel::setUpPanel() { QObject::connect(this, SIGNAL(hidePopUpWindow()), this, SLOT(onHidePopUpWindow()), Qt::QueuedConnection); + +#ifdef __APPLE__ + // On macOS the dialogs appear behind everything by default. Need to find + // a better fix that this... + setModal(true); +#endif } /**