From: Matt Keeter Date: Thu, 27 Mar 2014 01:40:59 +0000 (-0400) Subject: Fix double-click to open .stl on windows X-Git-Tag: v0.9.2~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d9301bbba097438546344405bd8899b0311cdc85;p=fstl Fix double-click to open .stl on windows --- diff --git a/src/app.cpp b/src/app.cpp index afa4ea7..b6eb3af 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -8,7 +8,10 @@ App::App(int argc, char *argv[]) : QApplication(argc, argv), window(new Window()) { window->show(); - window->load_stl(":gl/sphere.stl"); + if (argc > 1) + window->load_stl(argv[1]); + else + window->load_stl(":gl/sphere.stl"); } bool App::event(QEvent* e)