Commit ea7791f5 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix possible crash on exit

parent e8e1d774
......@@ -1492,6 +1492,7 @@ Bin::Bin(std::shared_ptr<ProjectItemModel> model, QWidget *parent, bool isMainBi
Bin::~Bin()
{
if (m_isMainBin) {
disconnect(&pCore->taskManager, &TaskManager::jobCount, m_infoLabel, &SmallJobLabel::slotSetJobCount);
pCore->taskManager.slotCancelJobs();
blockSignals(true);
m_proxyModel->selectionModel()->blockSignals(true);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment