[nautilus/gnome-41] files-view: Fix "Copy To" from "Starred" folder
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/gnome-41] files-view: Fix "Copy To" from "Starred" folder
- Date: Sun, 14 Nov 2021 13:03:50 +0000 (UTC)
commit 80aca467747eb09795061498d3e4638f5343fc91
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
(cherry picked from commit e6c0b65cccc8e2cd68885eb0a2ad5b9eea14da14)
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 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]