From 4a72aa1c3a876a0b781af7d1d8307576c568cc7f Mon Sep 17 00:00:00 2001 From: mzn Date: Fri, 4 Apr 2014 10:21:25 +0000 Subject: [PATCH] Fix for bug bug #394: Minimize button of Change layer order doesn't work. --- src/HYDROGUI/HYDROGUI_ZLevelsDlg.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/HYDROGUI/HYDROGUI_ZLevelsDlg.cxx b/src/HYDROGUI/HYDROGUI_ZLevelsDlg.cxx index e44c189c..efedc345 100644 --- a/src/HYDROGUI/HYDROGUI_ZLevelsDlg.cxx +++ b/src/HYDROGUI/HYDROGUI_ZLevelsDlg.cxx @@ -41,6 +41,12 @@ HYDROGUI_ZLevelsDlg::HYDROGUI_ZLevelsDlg( QWidget* theParent, HYDROGUI_Module* theModule ) : QDialog( theParent ) { + // Change windows flags to remove minimize button + Qt::WindowFlags aFlags = windowFlags(); + aFlags |= Qt::CustomizeWindowHint; + aFlags &= ~Qt::WindowMinimizeButtonHint; + setWindowFlags( aFlags ); + // Dialog title setWindowTitle( tr( "CHANGE_LAYER_ORDER" ) ); -- 2.39.2