summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b6a9327)
raw | patch | inline | side by side (parent: b6a9327)
author | joelholdsworth <joelholdsworth@users.sourceforge.net> | |
Sat, 24 May 2008 15:49:04 +0000 (15:49 +0000) | ||
committer | joelholdsworth <joelholdsworth@users.sourceforge.net> | |
Sat, 24 May 2008 15:49:04 +0000 (15:49 +0000) |
src/file.cpp | patch | blob | history |
diff --git a/src/file.cpp b/src/file.cpp
index fb03c25e765c0c85b79ee5a2d239e945aeddc0ff..111e6028aaf3096af2ebdc70fcc1c2230c12bd0a 100644 (file)
--- a/src/file.cpp
+++ b/src/file.cpp
@@ -493,7 +493,7 @@ sp_file_open_dialog(Gtk::Window &parentWindow, gpointer /*object*/, gpointer /*d
else
g_warning( "ERROR CONVERTING OPEN FILENAME TO UTF-8" );
- open_path = fileName;
+ open_path = Glib::path_get_dirname (fileName);
open_path.append(G_DIR_SEPARATOR_S);
prefs_set_string_attribute("dialogs.open", "path", open_path.c_str());