forked from qt-creator/qt-creator
Utils: Prevent early crash on non-existent commands
Change-Id: Ib94920835396e34827e7b40c30f48d28660e5fcf Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -337,12 +337,14 @@ int CallerHandle::exitCode() const
|
||||
QString CallerHandle::errorString() const
|
||||
{
|
||||
QTC_ASSERT(isCalledFromCallersThread(), return {});
|
||||
QTC_ASSERT(m_setup.get(), return {});
|
||||
return m_setup->m_errorString;
|
||||
}
|
||||
|
||||
void CallerHandle::setErrorString(const QString &str)
|
||||
{
|
||||
QTC_ASSERT(isCalledFromCallersThread(), return);
|
||||
QTC_ASSERT(m_setup.get(), return);
|
||||
m_setup->m_errorString = str;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user