The parent window of a modal window is now always the current active window.

[GB.GTK]
* BUG: The parent window of a modal window is now always the current active window.

[GB.GTK3]
* BUG: The parent window of a modal window is now always the current active window.

[GB.QT4]
* BUG: The parent window of a modal window is now always the current active window.

[GB.QT5]
* BUG: The parent window of a modal window is now always the current active window.
This commit is contained in:
Benoît Minisini 2022-05-15 20:06:26 +02:00
parent 0cd8047efa
commit 90634d9cb5
2 changed files with 1 additions and 8 deletions

View file

@ -795,9 +795,6 @@ void gMainWindow::setTransientFor()
{ {
gMainWindow *parent = _current; gMainWindow *parent = _current;
if (!parent)
parent = gApplication::mainWindow();
if (!parent) if (!parent)
parent = _active; parent = _active;

View file

@ -1954,11 +1954,7 @@ void MyMainWindow::doShowModal(bool popup, const QPoint *pos)
parent = CWINDOW_Current; parent = CWINDOW_Current;
if (!parent) if (!parent)
{ parent = CWINDOW_Active;
parent = CWINDOW_Main;
if (!parent)
parent = CWINDOW_Active;
}
if (parent) if (parent)
setParent(CWidget::getTopLevel((CWIDGET *)parent)->widget.widget, Qt::Window | info.flags); setParent(CWidget::getTopLevel((CWIDGET *)parent)->widget.widget, Qt::Window | info.flags);