summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/eglfs
diff options
context:
space:
mode:
authorRobin Burchell <robin.burchell@viroteck.net>2014-08-15 13:49:06 +0200
committerRobin Burchell <robin.burchell@viroteck.net>2014-08-17 12:37:34 +0200
commit20c14d87f248ca3d5aa42119df01105bbaaadc85 (patch)
treec87d20767ab05ee838086dcdd3b10fa6eb95d960 /src/plugins/platforms/eglfs
parent6af327216b0d2f025a333ffb2cf621492dc6acd4 (diff)
eglfs/stub: Die fatally if the framebuffer can't be opened.
There's no point trying to continue, everything graphical is not going to work. Change-Id: I4c85de63746618ddf73435b491a3244b7e53a76c Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'src/plugins/platforms/eglfs')
-rw-r--r--src/plugins/platforms/eglfs/qeglfshooks_stub.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/platforms/eglfs/qeglfshooks_stub.cpp b/src/plugins/platforms/eglfs/qeglfshooks_stub.cpp
index 4aa3f29260..5405db7959 100644
--- a/src/plugins/platforms/eglfs/qeglfshooks_stub.cpp
+++ b/src/plugins/platforms/eglfs/qeglfshooks_stub.cpp
@@ -85,8 +85,10 @@ void QEglFSHooks::platformInit()
framebuffer = qt_safe_open(fbDev, O_RDONLY);
- if (framebuffer == -1)
+ if (framebuffer == -1) {
qWarning("EGLFS: Failed to open %s", qPrintable(fbDev));
+ qFatal("EGLFS: Can't continue without a display");
+ }
}
void QEglFSHooks::platformDestroy()