From 72b9653aedc37078cbfb126a4b48a808642c05bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Wed, 14 Aug 2024 22:18:27 +0800 Subject: [PATCH] fix --- LunaTranslator/LunaTranslator/gui/usefulwidget.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/LunaTranslator/LunaTranslator/gui/usefulwidget.py b/LunaTranslator/LunaTranslator/gui/usefulwidget.py index 3b23ee66..a00ed7d7 100644 --- a/LunaTranslator/LunaTranslator/gui/usefulwidget.py +++ b/LunaTranslator/LunaTranslator/gui/usefulwidget.py @@ -1929,6 +1929,8 @@ class listediter(LDialog): self.closecallback() def __cb(self, paths): + if isinstance(paths, str): + paths = [paths] for path in paths: self.internalrealname.insert(0, path) self.hcmodel.insertRow(0, [QStandardItem(path)])