Commit 3a20f54b authored by Matthias Clasen's avatar Matthias Clasen

Avoid a warning in tests. Patch by Christian Dywan

        * gtk/gktfilechooserdefault.c (set_local_only): Avoid a warning
        in tests. Patch by Christian Dywan

svn path=/trunk/; revision=21892
parent c27052be
2008-12-13 Matthias Clasen <mclasen@redhat.com>
Bug 556233 – local-only causes G_IS_FILE warning
* gtk/gktfilechooserdefault.c (set_local_only): Avoid a warning
in tests. Patch by Christian Dywan
2008-12-13 Matthias Clasen <mclasen@redhat.com>
Bug 563158 – CellRendererProgress pulsing and progressing rows can
......
......@@ -5340,7 +5340,8 @@ set_local_only (GtkFileChooserDefault *impl,
shortcuts_add_bookmarks (impl);
}
if (local_only && !g_file_is_native (impl->current_folder))
if (local_only && impl->current_folder &&
!g_file_is_native (impl->current_folder))
{
/* If we are pointing to a non-local folder, make an effort to change
* back to a local folder, but it's really up to the app to not cause
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment