- 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:
Marius Stanciu
2020-11-13 18:44:05 +02:00
parent 353eed4548
commit 09403a19ab
4 changed files with 32 additions and 0 deletions

View File

@@ -10,6 +10,8 @@ from PyQt5 import QtGui, QtWidgets
from appTool import AppTool
from appGUI.GUIElements import RadioSet, FCComboBox, FCSpinner
import os
import gettext
import appTranslation as fcTranslate
import builtins
@@ -128,6 +130,9 @@ class ToolImage(AppTool):
"""
self.app.defaults.report_usage("import_image()")
if not os.path.exists(filename):
self.app.inform.emit('[ERROR_NOTCL] %s' % _("File no longer available."))
return
if mask is None:
mask = [250, 250, 250, 250]