diff options
Diffstat (limited to 'api/logic/launch/LaunchTask.cpp')
-rw-r--r-- | api/logic/launch/LaunchTask.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/api/logic/launch/LaunchTask.cpp b/api/logic/launch/LaunchTask.cpp index 9c09caf4..5b7ff182 100644 --- a/api/logic/launch/LaunchTask.cpp +++ b/api/logic/launch/LaunchTask.cpp @@ -167,15 +167,6 @@ bool LaunchTask::abort() return false; } -shared_qobject_ptr<LogModel> LaunchTask::getLogModel() -{ - if(!m_logModel) - { - m_logModel.reset(new LogModel()); - } - return m_logModel; -} - void LaunchTask::onLogLines(const QStringList &lines, MessageLevel::Enum defaultLevel) { for (auto & line: lines) @@ -202,8 +193,7 @@ void LaunchTask::onLogLine(QString line, MessageLevel::Enum level) // censor private user info line = censorPrivateInfo(line); - auto &model = *getLogModel(); - model.append(level, line); + emit log(line, level); } void LaunchTask::emitSucceeded() |