From d9301bbba097438546344405bd8899b0311cdc85 Mon Sep 17 00:00:00 2001 From: Matt Keeter Date: Wed, 26 Mar 2014 21:40:59 -0400 Subject: [PATCH] Fix double-click to open .stl on windows --- src/app.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- 2.39.5