summaryrefslogtreecommitdiff
path: root/qutebrowser/browser/webengine/notification.py
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2023-07-19 17:07:04 +0200
committerFlorian Bruhin <me@the-compiler.org>2023-07-19 17:08:24 +0200
commit92dea988c01e74596cc6ed698e88ac56df392c14 (patch)
tree3fa4099b4ead84d5f057e532c44b3c605979fe04 /qutebrowser/browser/webengine/notification.py
parent3b04cb1d99244516b21084545d06daa7e58cd756 (diff)
downloadqutebrowser-92dea988c01e74596cc6ed698e88ac56df392c14.tar.gz
qutebrowser-92dea988c01e74596cc6ed698e88ac56df392c14.zip
Initial upgrade to new PyQt6 stubs
Diffstat (limited to 'qutebrowser/browser/webengine/notification.py')
-rw-r--r--qutebrowser/browser/webengine/notification.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/qutebrowser/browser/webengine/notification.py b/qutebrowser/browser/webengine/notification.py
index 4d08e914e..d101c616c 100644
--- a/qutebrowser/browser/webengine/notification.py
+++ b/qutebrowser/browser/webengine/notification.py
@@ -1108,7 +1108,9 @@ class DBusNotificationAdapter(AbstractNotificationAdapter):
if padding and self._quirks.no_padded_images:
return None
- bits = qimage.constBits().asstring(size)
+ bits_ptr = qimage.constBits()
+ assert bits_ptr is not None
+ bits = bits_ptr.asstring(size)
image_data.add(QByteArray(bits))
image_data.endStructure()