[nautilus] files-view: Fix "Copy To" from "Starred" folder
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] files-view: Fix "Copy To" from "Starred" folder
- Date: Sun, 14 Nov 2021 12:09:45 +0000 (UTC)
commit e6c0b65cccc8e2cd68885eb0a2ad5b9eea14da14
Author: DillyPickly <dylan sabuda gmail com>
Date: Thu Mar 18 21:35:33 2021 -0400
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
src/nautilus-files-view.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c
index d351990d6..c93ad689c 100644
--- a/src/nautilus-files-view.c
+++ b/src/nautilus-files-view.c
@@ -6074,6 +6074,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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]