6081: Crash after double-click on .gpkg file
svn: r22644
This commit is contained in:
parent
cb2621e73c
commit
d79cf3a9dc
@ -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