diff --git a/src/plasmaquick/dialog.cpp b/src/plasmaquick/dialog.cpp index d6f1471b5..6b63dfe1f 100644 --- a/src/plasmaquick/dialog.cpp +++ b/src/plasmaquick/dialog.cpp @@ -800,14 +800,6 @@ Dialog::Dialog(QQuickItem *parent) d->slotWindowPositionChanged(); }); - // Given dialogs are skip task bar and don't have a decoration - // minimizing them using e.g. "minimize all" should just close them - connect(this, &QWindow::windowStateChanged, this, [this](Qt::WindowState newState) { - if (newState == Qt::WindowMinimized) { - setVisible(false); - } - }); - connect(this, &QWindow::visibleChanged, this, &Dialog::visibleChangedProxy); connect(this, SIGNAL(visibleChanged(bool)), this, SLOT(updateInputShape())); connect(this, SIGNAL(outputOnlyChanged()), this, SLOT(updateInputShape())); @@ -1412,8 +1404,6 @@ void Dialog::setVisible(bool visible) setPosition(popupPosition(d->visualParent, size())); } - // Bug 381242: Qt remembers minimize state and re-applies it when showing - setWindowStates(windowStates() & ~Qt::WindowMinimized); QQuickWindow::setVisible(visible); // signal will be emitted and proxied from the QQuickWindow code } else {