From d0fbc3bbbca82d3d36ecb232f60cb7a6c9cb91fa Mon Sep 17 00:00:00 2001 From: Imre Tuske Date: Mon, 13 Nov 2023 21:34:28 +1300 Subject: [PATCH] Paste image to network view doesn't work with python 3 #1405 --- scripts/python/qlibutils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/python/qlibutils.py b/scripts/python/qlibutils.py index abbe47e..079a3d2 100644 --- a/scripts/python/qlibutils.py +++ b/scripts/python/qlibutils.py @@ -917,9 +917,9 @@ def paste_clipboard_to_netview(kwargs): ba = Qt.QtCore.QByteArray(); buffer = Qt.QtCore.QBuffer(ba) buffer.open(Qt.QtCore.QIODevice.WriteOnly) - image.save(buffer, "png") + image.save(buffer, "png") buffer.close() - hda_def.addSection(image_name, str(buffer.data())) + hda_def.addSection(image_name, buffer.data().data()) # add image to network view add_image_to_netview(embedded_img_prefix(image_name), pane, pwd)