Fixes #1318
This commit is contained in:
parent
08a7ee4ffb
commit
5c976d724b
1
.gitignore
vendored
1
.gitignore
vendored
@ -30,4 +30,5 @@ __pycache__
|
|||||||
/.testmondata
|
/.testmondata
|
||||||
/.hypothesis
|
/.hypothesis
|
||||||
/prof
|
/prof
|
||||||
|
/venv
|
||||||
TODO
|
TODO
|
||||||
|
@ -440,10 +440,14 @@ class CommandDispatcher:
|
|||||||
window: Open the link in a new window.
|
window: Open the link in a new window.
|
||||||
"""
|
"""
|
||||||
path = url.path()
|
path = url.path()
|
||||||
|
#print (url.Qurl)
|
||||||
|
print (path)
|
||||||
if not path or path == '/':
|
if not path or path == '/':
|
||||||
raise cmdexc.CommandError("Can't go up!")
|
raise cmdexc.CommandError("Can't go up!")
|
||||||
new_path = posixpath.join(path, posixpath.pardir)
|
new_path = posixpath.join(path, posixpath.pardir)
|
||||||
|
print (new_path)
|
||||||
url.setPath(new_path)
|
url.setPath(new_path)
|
||||||
|
url.setFragment('')
|
||||||
self._open(url, tab, background, window)
|
self._open(url, tab, background, window)
|
||||||
|
|
||||||
@cmdutils.register(instance='command-dispatcher', scope='window')
|
@cmdutils.register(instance='command-dispatcher', scope='window')
|
||||||
|
Loading…
Reference in New Issue
Block a user