diff options
author | DillyPickly <dylan.sabuda@gmail.com> | 2021-03-18 21:35:33 -0400 |
---|---|---|
committer | António Fernandes <antoniojpfernandes@gmail.com> | 2021-11-14 13:03:50 +0000 |
commit | 80aca467747eb09795061498d3e4638f5343fc91 (patch) | |
tree | fec1b0cc8be0e811c8189495843d20c0754b355b | |
parent | 203d24f1e57991340b2870b0b956922144f0152a (diff) | |
download | nautilus-80aca467747eb09795061498d3e4638f5343fc91.tar.gz |
files-view: Fix "Copy To" from "Starred" folder
"Copy To" or "Move To" dialog starting from the current location.
However, if the current location is starred://, GtkFileChooserDialog
prompts an error message "The specified location is not supported".
Instead, while in the Starred location, use the actual parent of the
selected item as a starting location for the "Copy To" dialog.
Fixes: #1243
(cherry picked from commit e6c0b65cccc8e2cd68885eb0a2ad5b9eea14da14)
-rw-r--r-- | src/nautilus-files-view.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c index f63cb4b88..7354ebf92 100644 --- a/src/nautilus-files-view.c +++ b/src/nautilus-files-view.c @@ -6105,6 +6105,10 @@ copy_or_move_selection (NautilusFilesView *view, directory = nautilus_search_directory_get_base_model (NAUTILUS_SEARCH_DIRECTORY (priv->model)); uri = nautilus_directory_get_uri (directory); } + else if (showing_starred_directory (view)) + { + uri = nautilus_file_get_parent_uri (NAUTILUS_FILE (selection->data)); + } else { uri = nautilus_directory_get_uri (priv->model); |