From 54e25f3d27278b22649a35f2ffead4474f3add79 Mon Sep 17 00:00:00 2001 From: Sergio Ahumada Date: Wed, 18 Jul 2012 10:37:56 +0200 Subject: Widgets: Fix duplicated line in QMdiArea Replace duplicated line MaximizeAction with RestoreAction Task-number: QTBUG-17428 Change-Id: I5120afeed6715d28045f3eee01f26ee482f02ed1 Reviewed-by: Friedemann Kleint (cherry picked from commit 006b620ef9390e9396c69db74e31785b04a5d2d6) Reviewed-by: Sergio Ahumada --- src/gui/widgets/qmdiarea.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/widgets/qmdiarea.cpp b/src/gui/widgets/qmdiarea.cpp index 0006a90..be9831d 100644 --- a/src/gui/widgets/qmdiarea.cpp +++ b/src/gui/widgets/qmdiarea.cpp @@ -620,7 +620,7 @@ void QMdiAreaTabBar::contextMenuEvent(QContextMenuEvent *event) subWindowPrivate->setVisible(QMdiSubWindowPrivate::ResizeAction, false); subWindowPrivate->setVisible(QMdiSubWindowPrivate::MinimizeAction, false); subWindowPrivate->setVisible(QMdiSubWindowPrivate::MaximizeAction, false); - subWindowPrivate->setVisible(QMdiSubWindowPrivate::MaximizeAction, false); + subWindowPrivate->setVisible(QMdiSubWindowPrivate::RestoreAction, false); subWindowPrivate->setVisible(QMdiSubWindowPrivate::StayOnTopAction, false); } -- cgit v0.12