moved emit calls

Wed, 14 Mar 2018 12:18:52 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Wed, 14 Mar 2018 12:18:52 +0200
changeset 1284
7da74697b7d2
parent 1283
3c3a5eb965f7
child 1285
0d165d277562

moved emit calls

src/primitives.cpp file | annotate | diff | comparison | revisions
--- 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();
 			}
 		});
 	}

mercurial