]> AND Private Git Repository - blast.git/blobdiff - BlockLibraryWidget.cpp
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
added context to dispatcher op.
[blast.git] / BlockLibraryWidget.cpp
index 0d2636d7db1189b88cdc4baa387267327fa88646..e8f5c6da0f65d509b1b580e7d81d4cee89274bf4 100644 (file)
@@ -91,7 +91,7 @@ void BlockLibraryWidget::addClicked() {
     int idBlock = item->data(2,Qt::DisplayRole).toInt();
     QVariant v = comboScenes->currentData();
     cout << "adding block to scene " << v.toInt() << endl;
     int idBlock = item->data(2,Qt::DisplayRole).toInt();
     QVariant v = comboScenes->currentData();
     cout << "adding block to scene " << v.toInt() << endl;
-    dispatcher->addBlock(idParent, idBlock, v.toInt());
+    dispatcher->addBlock(Dispatcher::Design, idParent, idBlock, v.toInt());
   }
 
   // only take the first selected
   }
 
   // only take the first selected