6081: Crash after double-click on .gpkg file
svn: r22643
This commit is contained in:
parent
6b8eff0908
commit
9442a5afe8
@ -336,6 +336,8 @@ class CLIDbManager(object):
|
|||||||
or (None, None) if no import was performed.
|
or (None, None) if no import was performed.
|
||||||
"""
|
"""
|
||||||
pmgr = BasePluginManager.get_instance()
|
pmgr = BasePluginManager.get_instance()
|
||||||
|
# check to see if it isn't a filename directly:
|
||||||
|
if not os.path.isfile(filename):
|
||||||
# Allow URL names here; make temp file if necessary
|
# Allow URL names here; make temp file if necessary
|
||||||
url = urlparse(filename)
|
url = urlparse(filename)
|
||||||
if url.scheme != "":
|
if url.scheme != "":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user