# HG changeset patch # User Teemu Piippo # Date 1521022732 -7200 # Node ID 7da74697b7d222fb1957c62855fe4f446f4114d6 # Parent 3c3a5eb965f7bc709b67bbfe02fde91abcc68023 moved emit calls diff -r 3c3a5eb965f7 -r 7da74697b7d2 src/primitives.cpp --- 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(); } }); }