diff options
author | Carlos Soriano <csoriano@gnome.org> | 2016-04-12 13:19:51 +0200 |
---|---|---|
committer | Carlos Soriano <csoriano@gnome.org> | 2016-04-14 10:35:17 +0200 |
commit | bdb248f669853e68c7defc47c82caf5a6af2e1a3 (patch) | |
tree | d8645a29d8a18dc308a2a78a623d57baef112785 | |
parent | ac2b759b0db9f9f13a381901d6dbc1e2c61bb2f8 (diff) | |
download | nautilus-bdb248f669853e68c7defc47c82caf5a6af2e1a3.tar.gz |
desktop-canvas-view: remove unneeded check
There is no way the desktop view will hold a directory that is not
a desktop directory.
https://bugzilla.gnome.org/show_bug.cgi?id=712620
-rw-r--r-- | src/nautilus-desktop-canvas-view.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/nautilus-desktop-canvas-view.c b/src/nautilus-desktop-canvas-view.c index d86d01d32..eae2963d5 100644 --- a/src/nautilus-desktop-canvas-view.c +++ b/src/nautilus-desktop-canvas-view.c @@ -624,13 +624,7 @@ real_get_backing_uri (NautilusFilesView *view) return NULL; } - directory = model; - - if (NAUTILUS_IS_DESKTOP_DIRECTORY (directory)) { - directory = nautilus_desktop_directory_get_real_directory (NAUTILUS_DESKTOP_DIRECTORY (directory)); - } else { - nautilus_directory_ref (directory); - } + directory = nautilus_desktop_directory_get_real_directory (NAUTILUS_DESKTOP_DIRECTORY (model)); uri = nautilus_directory_get_uri (directory); |