diff --git a/src/commands.hxx b/src/commands.hxx index 208045e..5d7bad9 100644 --- a/src/commands.hxx +++ b/src/commands.hxx @@ -117,6 +117,9 @@ class Command: public QObject { log(QString(" FAILED[")+demangle(typeid(e).name())+"]: "+e.what()); throw e; } + virtual int steps(Script* parent) { + return 1; + } void line(int linenr) { _line = linenr; } @@ -187,6 +190,8 @@ class Command: public QObject { QCoreApplication::processEvents(QEventLoop::AllEvents, 100); } protected: + std::shared_ptr