summaryrefslogtreecommitdiffstats
path: root/examples/network/multicastreceiver
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2023-02-20 11:18:35 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-02-20 15:51:07 +0000
commitefe740e03bd64a6f50f43cba06260c9d003e7605 (patch)
tree611c3195fa0fa9ce0c056ae778a59e551d361884 /examples/network/multicastreceiver
parent8bcf236daac1c5636a2cf535cf38d0b412265c8c (diff)
examples: Connect Quit action to QCoreApplication::quit, not QWidget::close
Change-Id: I44ca7b61a4a261a7d3aad0dfeb870eb927ee768d Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit 850ef55fc57e62b70bab72705038e671002ca86e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'examples/network/multicastreceiver')
-rw-r--r--examples/network/multicastreceiver/receiver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/network/multicastreceiver/receiver.cpp b/examples/network/multicastreceiver/receiver.cpp
index 2a49553875..0ebeed8316 100644
--- a/examples/network/multicastreceiver/receiver.cpp
+++ b/examples/network/multicastreceiver/receiver.cpp
@@ -38,7 +38,7 @@ Receiver::Receiver(QWidget *parent)
connect(&udpSocket6, &QUdpSocket::readyRead,
this, &Receiver::processPendingDatagrams);
connect(quitButton, &QPushButton::clicked,
- this, &Receiver::close);
+ qApp, &QCoreApplication::quit);
}
void Receiver::processPendingDatagrams()