Skip to content

Commit

Permalink
[UI] Resync markers after each call to script engine
Browse files Browse the repository at this point in the history
  • Loading branch information
mean committed Sep 13, 2016
1 parent ebde4e1 commit e678f57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions avidemux/common/gui_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ static IScriptEngine *tempEngine;
static void RunScript(const char *name)
{
parseScript(tempEngine, name, IScriptEngine::DebugOnError);
A_Resync();
}

static void DebugScript(const char *name)
Expand Down Expand Up @@ -1576,6 +1577,7 @@ void A_set_avisynth_port(char *port_number_as_text){
void A_RunScript(const char *a)
{
call_scriptEngine(a);
A_Resync();
}
//
// EOF
3 changes: 2 additions & 1 deletion avidemux/qt4/ADM_userInterfaces/ADM_gui/Q_gui2_menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ void MainWindow::scriptFileActionHandler()
printf("Executing %s with %s engine\n", filePath.toUtf8().constData(), this->_scriptEngines[engineIndex]->name().c_str());

A_parseScript(this->_scriptEngines[engineIndex], filePath.toUtf8().constData());
A_Resync();
}
}
}
Expand Down Expand Up @@ -270,4 +271,4 @@ void MainWindow::searchRecentFiles(QAction * action)
void MainWindow::searchRecentProjects(QAction * action)
{
this->searchRecentFiles(action, this->recentProjectAction, ACT_RECENT_PROJECT0);
}
}

0 comments on commit e678f57

Please sign in to comment.