From 942d1bc4de44cd8b71e47b552cac33f7cb386537 Mon Sep 17 00:00:00 2001 From: Matt Keeter Date: Fri, 14 Mar 2014 10:40:12 -0400 Subject: [PATCH] Hook open event to load_stl --- src/app.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app.cpp b/src/app.cpp index e29fe76..5378368 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -14,7 +14,8 @@ bool App::event(QEvent* e) { if (e->type() == QEvent::FileOpen) { - qDebug() << static_cast(e)->file(); + window->load_stl(static_cast(e)->file()); + return true; } else { -- 2.39.5