From: Matt Keeter Date: Fri, 14 Mar 2014 14:40:12 +0000 (-0400) Subject: Hook open event to load_stl X-Git-Tag: v0.9.0~17 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=942d1bc4de44cd8b71e47b552cac33f7cb386537;p=fstl Hook open event to load_stl --- 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 {