forked from AuroraMiddleware/gtk
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:
parent
c27052be96
commit
3a20f54bbe
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user