Fix return value when create job

This commit is contained in:
Filip Sykala - NTB T15p 2023-10-02 15:56:21 +02:00
parent bd680e0206
commit 95178a2ba3

View File

@ -176,10 +176,11 @@ bool BoostThreadWorker::wait_for_idle(unsigned timeout_ms)
bool BoostThreadWorker::push(std::unique_ptr<Job> job) bool BoostThreadWorker::push(std::unique_ptr<Job> job)
{ {
if (job) if (!job)
m_input_queue.push(JobEntry{std::move(job)}); return false;
return bool{job}; m_input_queue.push(JobEntry{std::move(job)});
return true;
} }
}} // namespace Slic3r::GUI }} // namespace Slic3r::GUI