summaryrefslogtreecommitdiff
path: root/thunar/thunar-tree-model.c
diff options
context:
space:
mode:
authorNick Schermer <nick@xfce.org>2012-10-07 11:48:23 +0200
committerNick Schermer <nick@xfce.org>2012-10-13 16:10:35 +0200
commit8ffe01cce4bed0f0f6f8b4c2a4b7764cd9f2f8ff (patch)
treec5effc9db67afcc71d59b1d39024917165fa94be /thunar/thunar-tree-model.c
parent464fc0ab5b0adf8f737e4f7ae6ca6850f2d5ba65 (diff)
downloadthunar-8ffe01cce4bed0f0f6f8b4c2a4b7764cd9f2f8ff.tar.gz
Fix loading folder in tree view.
Diffstat (limited to 'thunar/thunar-tree-model.c')
-rw-r--r--thunar/thunar-tree-model.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/thunar/thunar-tree-model.c b/thunar/thunar-tree-model.c
index 913ed232..dd444235 100644
--- a/thunar/thunar-tree-model.c
+++ b/thunar/thunar-tree-model.c
@@ -1218,10 +1218,10 @@ thunar_tree_model_item_reset (ThunarTreeModelItem *item)
static void
thunar_tree_model_item_load_folder (ThunarTreeModelItem *item)
{
- _thunar_return_if_fail (item->file != NULL || item->device != NULL);
+ _thunar_return_if_fail (THUNAR_IS_FILE (item->file) || THUNAR_IS_DEVICE (item->device));
/* schedule the "load" idle source (if not already done) */
- if (G_LIKELY (item->load_idle_id == 0 && item->device == NULL))
+ if (G_LIKELY (item->load_idle_id == 0 && item->folder == NULL))
{
item->load_idle_id = g_idle_add_full (G_PRIORITY_HIGH, thunar_tree_model_item_load_idle,
item, thunar_tree_model_item_load_idle_destroy);