summaryrefslogtreecommitdiff
path: root/shell/ev-window.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-05-07 21:12:31 +0200
committerraveit65 <[email protected]>2016-05-26 16:15:22 +0200
commit9ecae29f107b3a12227a6dfe36a096fbe25e6f29 (patch)
treeec86d2251608459df7b88a95885011a25874da77 /shell/ev-window.c
parentfb156ec21432f792bc7ab630db74efe60d57c1e5 (diff)
downloadatril-9ecae29f107b3a12227a6dfe36a096fbe25e6f29.tar.bz2
atril-9ecae29f107b3a12227a6dfe36a096fbe25e6f29.tar.xz
shell: Don't set the current folder while saving a file
Fixes bug 655514. taken from: https://git.gnome.org/browse/evince/commit/shell/ev-window.c?h=gnome-3-8&id=55c1f8231bdab143a1d90f4bd598852d746b08e0
Diffstat (limited to 'shell/ev-window.c')
-rw-r--r--shell/ev-window.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 64896b63..78063ba2 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -2996,7 +2996,6 @@ ev_window_cmd_save_as (GtkAction *action, EvWindow *ev_window)
GtkWidget *fc;
gchar *base_name;
GFile *file;
- const gchar *folder;
fc = gtk_file_chooser_dialog_new (
_("Save a Copy"),
@@ -3018,10 +3017,6 @@ ev_window_cmd_save_as (GtkAction *action, EvWindow *ev_window)
base_name = g_file_get_basename (file);
gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (fc), base_name);
- folder = g_get_user_special_dir (G_USER_DIRECTORY_DOCUMENTS);
- gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (fc),
- folder ? folder : g_get_home_dir ());
-
g_object_unref (file);
g_free (base_name);