diff options
| author | Ralf Stephan <ralf@ark.in-berlin.de> | 2006-07-10 17:43:51 +0000 |
|---|---|---|
| committer | rwst <rwst@users.sourceforge.net> | 2006-07-10 17:43:51 +0000 |
| commit | 998f322e8dc8fe2e6d03a964f84bc549f1a07c28 (patch) | |
| tree | 144f013747415ad8cc810ce679bb6820a27c8966 /src/dialogs | |
| parent | Bicubic scaler added to filtering, allowing changes in filter resolution (diff) | |
| download | inkscape-998f322e8dc8fe2e6d03a964f84bc549f1a07c28.tar.gz inkscape-998f322e8dc8fe2e6d03a964f84bc549f1a07c28.zip | |
another attempt at #1502439, another example of ignoring NULL removed
(bzr r1392)
Diffstat (limited to 'src/dialogs')
| -rw-r--r-- | src/dialogs/filedialog.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dialogs/filedialog.cpp b/src/dialogs/filedialog.cpp index 6bc56357d..2ca1e3570 100644 --- a/src/dialogs/filedialog.cpp +++ b/src/dialogs/filedialog.cpp @@ -895,7 +895,10 @@ FileOpenDialogImpl::~FileOpenDialogImpl() bool FileOpenDialogImpl::show() { - set_current_folder(get_current_folder()); //hack to force initial dir listing + Glib::ustring s = Glib::filename_to_utf8 (get_current_folder()); + if (s.length() == 0) + s = getcwd (NULL, 0); + set_current_folder(Glib::filename_from_utf8(s)); //hack to force initial dir listing set_modal (TRUE); //Window sp_transientize((GtkWidget *)gobj()); //Make transient gint b = run(); //Dialog |
