only end the interactive action if it's the action you just ran
This commit is contained in:
parent
42a58fcd2d
commit
1d685c0dfd
1 changed files with 4 additions and 3 deletions
|
@ -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)) {
|
||||||
actions_interactive_end_act();
|
if (actions_act_is_interactive(act))
|
||||||
else {
|
actions_interactive_end_act();
|
||||||
|
} 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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue