summary refs log tree commit diff
path: root/src/dbus/NhekoDBusApi.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dbus/NhekoDBusApi.cpp')
-rw-r--r--src/dbus/NhekoDBusApi.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dbus/NhekoDBusApi.cpp b/src/dbus/NhekoDBusApi.cpp
index edc3fa8a..201cdac1 100644
--- a/src/dbus/NhekoDBusApi.cpp
+++ b/src/dbus/NhekoDBusApi.cpp
@@ -118,7 +118,7 @@ operator<<(QDBusArgument &arg, const QImage &image)
     arg << i.height();
     arg << i.bytesPerLine();
     arg << i.hasAlphaChannel();
-    int channels = i.isGrayscale() ? 1 : (i.hasAlphaChannel() ? 4 : 3);
+    int channels = i.hasAlphaChannel() ? 4 : 3;
     arg << i.depth() / channels;
     arg << channels;
     arg << QByteArray(reinterpret_cast<const char *>(i.bits()), i.sizeInBytes());