From b91c0027b571f56d4650072b3438e0e255b129af Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sat, 9 Jul 2016 13:55:51 +0300 Subject: [PATCH] Fixed issue #526. Dialog Detail is not on top after selection second object on Mac. --HG-- branch : release --- ChangeLog.txt | 1 + src/app/valentina/mainwindow.cpp | 2 ++ src/libs/vtools/dialogs/tools/dialogdetail.cpp | 2 ++ 3 files changed, 5 insertions(+) diff --git a/ChangeLog.txt b/ChangeLog.txt index d5d2e81e0..27fff5369 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -12,6 +12,7 @@ - [#516] Valentina crashes when use "Point intersect line and axis" instrument. - [#483] File lost. - Fixed Bisector tool bug. The tool created internal variable for wrong segment. +- [#526] Dialog Detail is not on top after selection second object on Mac. # Version 0.4.4 April 12, 2016 - Updated measurement templates with all measurements. Added new template Aldrich/Women measurements. diff --git a/src/app/valentina/mainwindow.cpp b/src/app/valentina/mainwindow.cpp index d3682fd08..9499c38ae 100644 --- a/src/app/valentina/mainwindow.cpp +++ b/src/app/valentina/mainwindow.cpp @@ -2799,6 +2799,8 @@ void MainWindow::ActionHistory(bool checked) dialogHistory->setWindowFlags(Qt::Window); connect(this, &MainWindow::RefreshHistory, dialogHistory, &DialogHistory::UpdateHistory); connect(dialogHistory, &DialogHistory::DialogClosed, this, &MainWindow::ClosedActionHistory); + // Fix issue #526. Dialog Detail is not on top after selection second object on Mac. + dialogHistory->setWindowFlags(dialogHistory->windowFlags() | Qt::WindowStaysOnTopHint); dialogHistory->show(); } else diff --git a/src/libs/vtools/dialogs/tools/dialogdetail.cpp b/src/libs/vtools/dialogs/tools/dialogdetail.cpp index b81f76934..7f5e9c591 100644 --- a/src/libs/vtools/dialogs/tools/dialogdetail.cpp +++ b/src/libs/vtools/dialogs/tools/dialogdetail.cpp @@ -130,6 +130,8 @@ void DialogDetail::ChosenObject(quint32 id, const SceneObject &type) } ValidObjects(DetailIsValid()); + // Fix issue #526. Dialog Detail is not on top after selection second object on Mac. + setWindowFlags(windowFlags() | Qt::WindowStaysOnTopHint); this->show(); } }