Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save to File from Print Layout silently fails when file is open in another application. #18444

Closed
qgib opened this issue Mar 29, 2014 · 1 comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Mar 29, 2014

Author Name: Alex Leith (Alex Leith)
Original Redmine Issue: 9940
Affected QGIS version: 2.0.1
Redmine category:map_composer/printing


The issue is that you go 'save to PDF' and it works away, and seems to work, but if the file is open in another application it silently fails.

What needs to happen is like this (in Python code):

    fExists = os.access(outFile, os.F_OK)
    fAccess = os.access(outFile, os.X_OK)
    if(fExists and not fAccess):
        QMessageBox.information(None, "Error", 'Can\\'t write file as it\\'s open in another program. Please close the file or choose a different target.')
        return
@qgib
Copy link
Contributor Author

qgib commented Jun 3, 2014

Author Name: Nyall Dawson (@nyalldawson)


Duplicate of #17895


  • resolution was changed from to duplicate
  • status_id was changed from Open to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks labels May 24, 2019
@qgib qgib added this to the Version 2.2 milestone May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks
Projects
None yet
Development

No branches or pull requests

1 participant