Add missing parent for messagebox and other popups
Unparented popups can easily get lost in backround, but they still block top level event loop when run with ::exec() thus preventing interactions with main window. This mainly happens on wayland. Setting the parent ensures they are always kept on top and reasonably positioned.
This commit is contained in:
@@ -708,7 +708,7 @@ void Placement::onSelectedVertexClicked()
|
||||
|
||||
if (!success) {
|
||||
Base::Console().Warning("Placement selection error. Select either 1 or 2 points.\n");
|
||||
QMessageBox msgBox;
|
||||
QMessageBox msgBox(this);
|
||||
msgBox.setText(tr("Please select 1, 2, or 3 points before clicking this button. A point may be on a vertex, \
|
||||
face, or edge. If on a face or edge the point used will be the point at the mouse position along \
|
||||
face or edge. If 1 point is selected it will be used as the center of rotation. If 2 points are \
|
||||
|
||||
Reference in New Issue
Block a user