commit d9301bbba097438546344405bd8899b0311cdc85 parent 61c930444d093b2d1bb43b72a2f34b4a7d748eaf Author: Matt Keeter <matt.j.keeter@gmail.com> Date: Wed, 26 Mar 2014 21:40:59 -0400 Fix double-click to open .stl on windows Diffstat:
M | src/app.cpp | | | 5 | ++++- |
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git 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)