aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lua_interface.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lua_interface.c b/src/lua_interface.c
index 7a98451b..97b59c14 100644
--- a/src/lua_interface.c
+++ b/src/lua_interface.c
@@ -810,8 +810,9 @@ void l_pm_view_fill(GtkTreeIter *initial_iter) {
lua_pushboolean(lua, initial_iter != NULL);
l_call_function(2, 1, true);
if (!lua_istable(lua, -1)) {
+ if (!lua_isnil(lua, -1)) warn("pm.get_contents_for: return not a table.");
lua_pop(lua, 1); // non-table return
- return warn("pm.get_contents_for: return not a table.");
+ return;
}
GtkTreeIter iter, child;
@@ -841,6 +842,8 @@ void l_pm_view_fill(GtkTreeIter *initial_iter) {
lua_pop(lua, 1); // value
}
lua_pop(lua, 1); // returned table
+
+ l_handle_event("pm_view_filled");
}
/**