fix user agent display

This commit is contained in:
Kashiko Koibumi 2024-05-31 00:59:11 +09:00
parent 4702dd2593
commit 0acae4c044
No known key found for this signature in database
GPG Key ID: 8F06E069E37C40C4

View File

@ -145,7 +145,7 @@ class NetworkStatus(QtWidgets.QWidget, RetranslateMixin):
0, 0, QtWidgets.QTableWidgetItem(
"%s:%i" % (destination.host, destination.port)))
self.tableWidgetConnectionCount.setItem(
0, 2, QtWidgets.QTableWidgetItem("%s" % (c.userAgent)))
0, 2, QtWidgets.QTableWidgetItem("%s" % (c.userAgent.decode("utf-8", "replace"))))
self.tableWidgetConnectionCount.setItem(
0, 3, QtWidgets.QTableWidgetItem("%s" % (c.tlsVersion)))
self.tableWidgetConnectionCount.setItem(