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 ...@@ -1492,6 +1492,7 @@ Bin::Bin(std::shared_ptr<ProjectItemModel> model, QWidget *parent, bool isMainBi
Bin::~Bin() Bin::~Bin()
{ {
if (m_isMainBin) { if (m_isMainBin) {
disconnect(&pCore->taskManager, &TaskManager::jobCount, m_infoLabel, &SmallJobLabel::slotSetJobCount);
pCore->taskManager.slotCancelJobs(); pCore->taskManager.slotCancelJobs();
blockSignals(true); blockSignals(true);
m_proxyModel->selectionModel()->blockSignals(true); m_proxyModel->selectionModel()->blockSignals(true);
......
Supports Markdown
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