blob: c06cd1c632bd9f8748e31342ab39803be8249c4c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
diff --git a/src/platform-plugin/qgtkwindow.cpp b/src/platform-plugin/qgtkwindow.cpp
index 18917c2..285d12d 100644
--- a/src/platform-plugin/qgtkwindow.cpp
+++ b/src/platform-plugin/qgtkwindow.cpp
@@ -386,10 +386,9 @@ void QGtkWindow::onConfigure()
bool QGtkWindow::onDelete()
{
- bool accepted = false;
- QWindowSystemInterface::handleCloseEvent(window(), &accepted);
+ QWindowSystemInterface::handleCloseEvent(window());
QWindowSystemInterface::flushWindowSystemEvents();
- return accepted;
+ return true;
}
QSurfaceFormat QGtkWindow::format() const
|