diff options
Diffstat (limited to 'tikzit/src/gtk/Window.m')
-rw-r--r-- | tikzit/src/gtk/Window.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tikzit/src/gtk/Window.m b/tikzit/src/gtk/Window.m index c7f98ff..ea87b6c 100644 --- a/tikzit/src/gtk/Window.m +++ b/tikzit/src/gtk/Window.m @@ -181,7 +181,7 @@ static void update_paste_action (GtkClipboard *clipboard, GdkEvent *event, GtkAc FileChooserDialog *dialog = [FileChooserDialog openDialogWithParent:window]; [dialog addStandardFilters]; if ([document path]) { - [dialog setCurrentFolder:[document path]]; + [dialog setCurrentFolder:[[document path] stringByDeletingLastPathComponent]]; } else if ([app lastOpenFolder]) { [dialog setCurrentFolder:[app lastOpenFolder]]; } |