Fixed DnD breakage
This commit is contained in:
parent
a022fa29ea
commit
b7b20164e8
|
@ -236,8 +236,10 @@ class WidgetFileActionMixin:
|
|||
|
||||
for path in paths:
|
||||
try:
|
||||
file = Gio.File.new_for_path(path)
|
||||
if "file://" in path:
|
||||
path = path.split("file://")[1]
|
||||
|
||||
file = Gio.File.new_for_path(path)
|
||||
if _target_path:
|
||||
if os.path.isdir(_target_path):
|
||||
info = file.query_info("standard::display-name", 0, cancellable=None)
|
||||
|
|
|
@ -196,7 +196,9 @@ class WindowMixin(TabMixin):
|
|||
wid, tid = action.split("|")
|
||||
store = iconview.get_model()
|
||||
treePaths = iconview.get_selected_items()
|
||||
uris = self.format_to_uris(store, wid, tid, treePaths, True)
|
||||
# NOTE: Need URIs as URI format for DnD to work. Will strip 'file://'
|
||||
# further down call chain when doing internal fm stuff.
|
||||
uris = self.format_to_uris(store, wid, tid, treePaths)
|
||||
uris_text = '\n'.join(uris)
|
||||
|
||||
data.set_uris(uris)
|
||||
|
|
Loading…
Reference in New Issue