From 24f402db838c5755e4a4c8829d4e03181dd0af0f Mon Sep 17 00:00:00 2001 From: masatami <55663274+masatami@users.noreply.github.com> Date: Sun, 15 Jan 2023 20:19:37 -0300 Subject: [PATCH] Update manager.py Prevents the function from overwriting the source file or other txt files in the same folder (happened to me a couple days ago ;_;) --- morph/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morph/manager.py b/morph/manager.py index 0eaa560e..50fb16ee 100644 --- a/morph/manager.py +++ b/morph/manager.py @@ -212,7 +212,7 @@ def onExtractTxtFile(self): return destPath = QFileDialog.getSaveFileName( - caption='Save morpheme db to?', directory=cfg('path_dbs') + os.sep + 'textFile.db')[0] + caption='Save morpheme db to?', directory=cfg('path_dbs') + os.sep + 'textFile.db', filter='Databases (*.db)')[0] if not destPath: return