summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@qt.io>2017-09-08 11:33:20 +0200
committerPaul Olav Tvete <paul.tvete@qt.io>2017-09-14 08:28:59 +0000
commit3cb09edd71745edda4bbe8de3a6d7ad8e4ea5f58 (patch)
tree40486fd8961c3680dc664e0edf539ea76a8086f2
parent8828bf4dbeb90e479b3b461905f974774d6e20a4 (diff)
Fix server buffer integration override logic
Assign to the actual variable instead of a new one with the same name. Change-Id: I9e4c3525891ff53f0194198b9c11f223df4c14a9 Reviewed-by: David Edmundson <davidedmundson@kde.org> Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
-rw-r--r--src/client/qwaylandintegration.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/qwaylandintegration.cpp b/src/client/qwaylandintegration.cpp
index 400f3517c..bffadf29a 100644
--- a/src/client/qwaylandintegration.cpp
+++ b/src/client/qwaylandintegration.cpp
@@ -359,7 +359,7 @@ void QWaylandIntegration::initializeServerBufferIntegration()
disableHardwareIntegration = disableHardwareIntegration || !mDisplay->hardwareIntegration();
if (disableHardwareIntegration) {
QByteArray serverBufferIntegrationName = qgetenv("QT_WAYLAND_SERVER_BUFFER_INTEGRATION");
- QString targetKey = QString::fromLocal8Bit(serverBufferIntegrationName);
+ targetKey = QString::fromLocal8Bit(serverBufferIntegrationName);
} else {
targetKey = mDisplay->hardwareIntegration()->serverBufferIntegration();
}