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:
parent
0cd8047efa
commit
90634d9cb5
2 changed files with 1 additions and 8 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue