diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2017-08-11 12:01:12 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2017-08-16 15:52:02 +0000 |
commit | cdc79f5ebc0ec1898e3845acb9c880b5e69e593b (patch) | |
tree | 18f2b3a12d77d33b6cc859b502358976c169264d /src/plugins/platforms/xcb/qxcbconnection.h | |
parent | baf1158c48c3342f4e90d83c3b93236535aac285 (diff) |
XCB: Don't core-dump if we can't connect to the X displayName
Exit with error, but don't crash.
Change-Id: Ie05c6480d8a44fda817ffffd14d9dfd8c951beef
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'src/plugins/platforms/xcb/qxcbconnection.h')
-rw-r--r-- | src/plugins/platforms/xcb/qxcbconnection.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/platforms/xcb/qxcbconnection.h b/src/plugins/platforms/xcb/qxcbconnection.h index 1129090eca..edbc8d846e 100644 --- a/src/plugins/platforms/xcb/qxcbconnection.h +++ b/src/plugins/platforms/xcb/qxcbconnection.h @@ -388,6 +388,7 @@ public: ~QXcbConnection(); QXcbConnection *connection() const { return const_cast<QXcbConnection *>(this); } + bool isConnected() const; const QList<QXcbVirtualDesktop *> &virtualDesktops() const { return m_virtualDesktops; } const QList<QXcbScreen *> &screens() const { return m_screens; } |