only end the interactive action if it's the action you just ran

This commit is contained in:
Dana Jansens 2007-07-11 22:16:39 +00:00
parent 42a58fcd2d
commit 1d685c0dfd

View file

@ -259,9 +259,10 @@ void actions_run_acts(GSList *acts,
/* fire the action's run function with this data */ /* fire the action's run function with this data */
if (ok) { if (ok) {
if (!act->def->run(&data, act->options)) if (!act->def->run(&data, act->options)) {
if (actions_act_is_interactive(act))
actions_interactive_end_act(); actions_interactive_end_act();
else { } else {
/* make sure its interactive if it returned TRUE */ /* make sure its interactive if it returned TRUE */
g_assert(act->def->i_cancel && act->def->i_input); g_assert(act->def->i_cancel && act->def->i_input);