Skip to content

Commit

Permalink
Fix double-click to open .stl on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mkeeter committed Mar 27, 2014
1 parent 61c9304 commit d9301bb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d9301bb

Please sign in to comment.