diff --git a/src/modules/shellprocess/CommandList.cpp b/src/modules/shellprocess/CommandList.cpp index 1e7f4887a..39f049abc 100644 --- a/src/modules/shellprocess/CommandList.cpp +++ b/src/modules/shellprocess/CommandList.cpp @@ -37,12 +37,13 @@ static QStringList get_variant_stringlist(const QVariantList& l) return retl; } -CommandList::CommandList() +CommandList::CommandList( bool doChroot ) + : m_doChroot( doChroot ) { } -CommandList::CommandList::CommandList(const QVariant& v) - : CommandList() +CommandList::CommandList::CommandList( const QVariant& v, bool doChroot ) + : CommandList( doChroot ) { if ( v.type() == QVariant::List ) { diff --git a/src/modules/shellprocess/CommandList.h b/src/modules/shellprocess/CommandList.h index b94ffdcaf..b519f40dd 100644 --- a/src/modules/shellprocess/CommandList.h +++ b/src/modules/shellprocess/CommandList.h @@ -25,15 +25,20 @@ class CommandList : protected QStringList { public: - CommandList(); - CommandList(const QVariant& v); + CommandList( bool doChroot = true ); + CommandList( const QVariant& v, bool doChroot = true ); ~CommandList(); + bool doChroot() const { return m_doChroot; } + using QStringList::isEmpty; using QStringList::count; using QStringList::cbegin; using QStringList::cend; using QStringList::const_iterator; + +private: + bool m_doChroot; } ; #endif // COMMANDLIST_H