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
New Shapefile layer silently overwrite existing files #44299
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Crash/Data Corruption
GUI/UX
Related to QGIS application GUI or User Experience
Comments
GeoJGH
added
the
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
label
Jul 21, 2021
Confirmed on Linux too. The data corruption flag is appropriate I think. What's also not nice is that in the case that the warning is shown, if cancel is pressed the New shapefile layer dialog is closed losing all entered fields. |
github-actions
bot
added
the
stale
Uh oh! Seems this work is abandoned, and the PR is about to close.
label
Aug 7, 2021
m-kuhn
removed
the
stale
Uh oh! Seems this work is abandoned, and the PR is about to close.
label
Aug 27, 2021
rouault
added a commit
to rouault/QGIS
that referenced
this issue
Sep 22, 2021
…e extension is not specified and avoid closing the dialog when the user doesn't confirm overwriting Fixes qgis#44299
rouault
added a commit
to rouault/QGIS
that referenced
this issue
Sep 22, 2021
…e extension is not specified and avoid closing the dialog when the user doesn't confirm overwriting Fixes qgis#44299
nyalldawson
pushed a commit
that referenced
this issue
Sep 24, 2021
…e extension is not specified and avoid closing the dialog when the user doesn't confirm overwriting Fixes #44299
rouault
added a commit
to rouault/QGIS
that referenced
this issue
Sep 24, 2021
…e extension is not specified and avoid closing the dialog when the user doesn't confirm overwriting Fixes qgis#44299
nyalldawson
pushed a commit
that referenced
this issue
Sep 24, 2021
…e extension is not specified and avoid closing the dialog when the user doesn't confirm overwriting Fixes #44299
espinafre
pushed a commit
to espinafre/QGIS
that referenced
this issue
Sep 29, 2021
…e extension is not specified and avoid closing the dialog when the user doesn't confirm overwriting Fixes qgis#44299
nyalldawson
pushed a commit
that referenced
this issue
Nov 1, 2021
…e extension is not specified and avoid closing the dialog when the user doesn't confirm overwriting Fixes #44299
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!
Crash/Data Corruption
GUI/UX
Related to QGIS application GUI or User Experience
When creating a new Shapefile ( menu
Layer / Create layer / new Shapefile Layer...
), one can either select or write a new layer name. When selecting it (using the...
button), thefull path + name + .shp extension
is returned. If such file already exists, a warning is shown.If the user just enters a name, without the
.shp
extension, (with or without a path), the set of Shapefile files are created. Any existing Shapefile will be overwritten without any warning.Expected behavior: a warning should be shown that the layer will be overwritten
Step to reproduce:
Layer / Create layer / new Shapefile Layer...
, enter the nametest
, select a geometry type and click ok to create the shapefilesLayer / Create layer / new Shapefile Layer...
, enter the same nametest
, select a geometry type and click ok to create the shapefiles --> files are overwritten, no warning is shownLayer / Create layer / new Shapefile Layer...
, enter the same name, with extensiontest.shp
, select a geometry type and click ok to create the shapefiles -->A warning is shown informing that the layer already exists and will be overwrittenThe text was updated successfully, but these errors were encountered: