Skip to content

Commit

Permalink
Update main.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
alanspencer committed Feb 7, 2020
1 parent da94391 commit d45bbd4
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions SPIERSview/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ int main(int argc, char *argv[])
{
fname = argv[1];
//Make sure we don't handle file event at all
a.donthandlefileevent = true;
app.donthandlefileevent = true;

}
}
Expand All @@ -272,12 +272,13 @@ int main(int argc, char *argv[])
app.processEvents();

if (app.namereceived)
fname = a.fn;
fname = app.fn;

MainWindow w;
// MainWindow with Event filter - deals with glitchy keyboard shortcuts
MainWindow mainWindow;
app.installEventFilter(&mainWindow);
w.show();
mainWindow.show();

return a.exec();
return app.exec();
}
#endif

0 comments on commit d45bbd4

Please sign in to comment.