diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2014-04-29 18:25:33 +0200 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2014-04-30 11:08:26 +0200 |
commit | a66b363c0b1993a7594f6d19f63ddf895a481bcc (patch) | |
tree | ca3d7fad5ffe86d89c60df4134c7e1563e47666b /src | |
parent | 55144869347c604260cfa6538684c2ed9e0b0f19 (diff) | |
download | nautilus-a66b363c0b1993a7594f6d19f63ddf895a481bcc.tar.gz |
application: ensure bookmark list when it's first requested
Instead of during startup()
Diffstat (limited to 'src')
-rw-r--r-- | src/nautilus-application.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nautilus-application.c b/src/nautilus-application.c index 42c233c68..2fb0297be 100644 --- a/src/nautilus-application.c +++ b/src/nautilus-application.c @@ -100,6 +100,10 @@ struct _NautilusApplicationPriv { NautilusBookmarkList * nautilus_application_get_bookmarks (NautilusApplication *application) { + if (!application->priv->bookmark_list) { + application->priv->bookmark_list = nautilus_bookmark_list_new (); + } + return application->priv->bookmark_list; } |