Browse Source

Pass onPathDrop to RackScene children

tags/v0.5.0
Andrew Belt 7 years ago
parent
commit
56c57345ea
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      src/app/RackScene.cpp

+ 3
- 2
src/app/RackScene.cpp View File

@@ -122,7 +122,6 @@ void RackScene::onHoverKey(EventHoverKey &e) {
Widget::onHoverKey(e); Widget::onHoverKey(e);
} }



void RackScene::onPathDrop(EventPathDrop &e) { void RackScene::onPathDrop(EventPathDrop &e) {
if (e.paths.size() >= 1) { if (e.paths.size() >= 1) {
const std::string& firstPath = e.paths.front(); const std::string& firstPath = e.paths.front();
@@ -131,8 +130,10 @@ void RackScene::onPathDrop(EventPathDrop &e) {
e.consumed = true; e.consumed = true;
} }
} }
}


if (!e.consumed)
Scene::onPathDrop(e);
}




} // namespace rack } // namespace rack

Loading…
Cancel
Save