summaryrefslogtreecommitdiffstats
path: root/examples/network/loopback/dialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/network/loopback/dialog.cpp')
-rw-r--r--examples/network/loopback/dialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/network/loopback/dialog.cpp b/examples/network/loopback/dialog.cpp
index d1673d3338..f2391fd5b8 100644
--- a/examples/network/loopback/dialog.cpp
+++ b/examples/network/loopback/dialog.cpp
@@ -25,7 +25,7 @@ Dialog::Dialog(QWidget *parent)
buttonBox->addButton(quitButton, QDialogButtonBox::RejectRole);
connect(startButton, &QAbstractButton::clicked, this, &Dialog::start);
- connect(quitButton, &QAbstractButton::clicked, this, &QWidget::close);
+ connect(quitButton, &QAbstractButton::clicked, qApp, &QCoreApplication::quit);
connect(&tcpServer, &QTcpServer::newConnection,
this, &Dialog::acceptConnection);
connect(&tcpClient, &QAbstractSocket::connected, this, &Dialog::startTransfer);