This commit is contained in:
Kovid Goyal 2022-12-21 21:51:46 +05:30
parent 5498a45aee
commit 732a92b153
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -319,8 +319,8 @@ class Boss(QObject):
return error_dialog(self.gui, _('File not found'), _( return error_dialog(self.gui, _('File not found'), _(
'The file %s does not exist.') % path, show=True) 'The file %s does not exist.') % path, show=True)
if not os.access(path, os.W_OK): if not os.access(path, os.W_OK):
warning_dialog(self.gui, _('Readonly file'), _( warning_dialog(self.gui, _('Read-only file'), _(
'The file {} is readon-only. Saving changes to it will either fail or cause its permissions to be reset.').format(path), show=True) 'The file {} is read-only. Saving changes to it will either fail or cause its permissions to be reset.').format(path), show=True)
isdir = os.path.isdir(path) isdir = os.path.isdir(path)
ext = path.rpartition('.')[-1].upper() ext = path.rpartition('.')[-1].upper()
if ext not in SUPPORTED and not isdir: if ext not in SUPPORTED and not isdir: