]> git.sur5r.net Git - fstl/commitdiff
Hook open event to load_stl
authorMatt Keeter <matt.j.keeter@gmail.com>
Fri, 14 Mar 2014 14:40:12 +0000 (10:40 -0400)
committerMatt Keeter <matt.j.keeter@gmail.com>
Fri, 14 Mar 2014 14:40:12 +0000 (10:40 -0400)
src/app.cpp

index e29fe764d55490a49dbbb2ea97951fa693d1d378..53783686b0503e01bde4660b944856ef0242990e 100644 (file)
@@ -14,7 +14,8 @@ bool App::event(QEvent* e)
 {
     if (e->type() == QEvent::FileOpen)
     {
-        qDebug() << static_cast<QFileOpenEvent*>(e)->file();
+        window->load_stl(static_cast<QFileOpenEvent*>(e)->file());
+        return true;
     }
     else
     {