Skip to content

Commit

Permalink
Merge pull request #37 from ouuan/fix-unicode-path
Browse files Browse the repository at this point in the history
fix(main): open file with unicode in path
  • Loading branch information
coder3101 committed Dec 13, 2019
2 parents 1d80075 + 88fedce commit 7f97839
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@

int main(int argc, char* argv[]) {
QApplication a(argc, argv);
QString filePath = argc > 1 ? argv[1]: "";
QStringList args = a.arguments();
QString filePath = args.size() > 1 ? args[1]: "";
MainWindow w(filePath);
w.show();
return a.exec();
Expand Down

0 comments on commit 7f97839

Please sign in to comment.