Fix potential issue from the future

Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
This commit is contained in:
TheJackiMonster 2023-02-10 00:11:27 +01:00
parent 72933c9978
commit 3ac87d9125
No known key found for this signature in database
GPG key ID: D850A5F772E880F9

View file

@ -355,7 +355,7 @@ class abstractModel(QAbstractItemModel):
return None
encodedData = bytes(data.data("application/xml")).decode()
root = ET.XML(encodedData)
if not root:
if root is None:
return None
if root.tag != "outlineItems":