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

Warn about all existing files in save as #15828

Open
qgib opened this issue Nov 7, 2012 · 3 comments
Open

Warn about all existing files in save as #15828

qgib opened this issue Nov 7, 2012 · 3 comments
Labels
Feature Request GUI/UX Related to QGIS application GUI or User Experience

Comments

@qgib
Copy link
Contributor

qgib commented Nov 7, 2012

Author Name: Radim Blazek (@blazek)
Original Redmine Issue: 6648

Redmine category:gui


Vector/raster save as dialog only warns user about file existence of file with 'base' extension. For example, if foo.shp was selected and it does not exist but foo.dbf exists, then user is not warned and foo.dbf is silently overwritten.

At this moment it cannot be easily fixed (where warning is generated) because QFileDialog does not support such feature (test multiple extensions for existence).

Another issue is, that if file name is typed by hand, user is not warned at all. I am not sure if it is desired or not, maybe power users typing files names don't need to be warned?

@qgib
Copy link
Contributor Author

qgib commented Nov 7, 2012

Author Name: Radim Blazek (@blazek)


  • category_id was configured as GUI

@qgib
Copy link
Contributor Author

qgib commented Apr 30, 2017

Author Name: Giovanni Manghi (@gioman)


  • easy_fix was configured as 0

@qgib
Copy link
Contributor Author

qgib commented Feb 26, 2018

Author Name: Radim Blazek (@blazek)


Still problem in 3.0, e.g. .dbf file is silently overridden if .shp does not exist.

The second problem is solved, user is warned if a file of the name typed by hand exists. It means that now the check is not done by the file dialog but when OK is clicked which makes the fix easier but it will be difficult to get list of file extensions from GDAL. It would probably require to keep our list in QGIS.


  • description was changed from Vector/raster save as dialog only warns user about file existence of file with 'base' extension. For example, if foo.shp was selected and it does not exist but foo.dbf exists, then user is not warned and foo.dbf is silently overwritten.

At this moment it cannot be easily fixed (where warning is generated) because QFileDialog does not support such feature (test multiple extensions for existence).

Another issue is, that if file name is typed by hand, user is not warned at all. I am not sure if it is desired or not, maybe power users typing files names don't need to be warned?

to Vector/raster save as dialog only warns user about file existence of file with 'base' extension. For example, if foo.shp was selected and it does not exist but foo.dbf exists, then user is not warned and foo.dbf is silently overwritten.

At this moment it cannot be easily fixed (where warning is generated) because QFileDialog does not support such feature (test multiple extensions for existence).

Another issue is, that if file name is typed by hand, user is not warned at all. I am not sure if it is desired or not, maybe power users typing files names don't need to be warned?

@qgib qgib added Feature Request GUI/UX Related to QGIS application GUI or User Experience labels May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request GUI/UX Related to QGIS application GUI or User Experience
Projects
None yet
Development

No branches or pull requests

1 participant