remove url parameters from extension

This commit is contained in:
dries.k
2022-09-02 17:40:26 +02:00
parent 0cf78c3be6
commit 7a4abb2275

View File

@@ -93,7 +93,8 @@ class MessageWidget(QtWidgets.QWidget, Ui_Form):
if not settings.value("ImagePopup/enabled", type=bool): if not settings.value("ImagePopup/enabled", type=bool):
return return
_, ext = os.path.splitext(link) qurl = QtCore.QUrl(link)
_, ext = os.path.splitext(qurl.fileName())
if ext in settings.value("ImagePopup/extensions", type=list): if ext in settings.value("ImagePopup/extensions", type=list):
self.image_popup.emit(link, QtGui.QCursor.pos()) self.image_popup.emit(link, QtGui.QCursor.pos())