- added a message warning the user that the file is no longer available when it tries to open a file from the recent file, that was moved or deleted
This commit is contained in:
@@ -20,6 +20,7 @@ import re
|
||||
import time
|
||||
import logging
|
||||
import traceback
|
||||
import os
|
||||
|
||||
import gettext
|
||||
import appTranslation as fcTranslate
|
||||
@@ -106,6 +107,10 @@ class ToolPDF(AppTool):
|
||||
'params': [filename]})
|
||||
|
||||
def open_pdf(self, filename):
|
||||
if not os.path.exists(filename):
|
||||
self.inform.emit('[ERROR_NOTCL] %s' % _("File no longer available."))
|
||||
return
|
||||
|
||||
short_name = filename.split('/')[-1].split('\\')[-1]
|
||||
self.parsing_promises.append(short_name)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user