--- a/src/primitives.cpp Wed Mar 14 12:08:03 2018 +0200 +++ b/src/primitives.cpp Wed Mar 14 12:18:52 2018 +0200 @@ -94,13 +94,13 @@ { if (m_activeScanner) { + emit layoutAboutToBeChanged(); m_primitives = m_activeScanner->scannedPrimitives(); - emit layoutAboutToBeChanged(); populateCategories(); + emit layoutChanged(); print(tr("%1 primitives scanned"), countof(m_primitives)); delete m_activeScanner; m_activeScanner = nullptr; - emit layoutChanged(); } }); }