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
This commit is contained in:
Matthias Clasen 2008-12-14 00:32:32 +00:00
parent c27052be96
commit 3a20f54bbe
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,10 @@
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

View File

@ -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