aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index 9553f70..570d08f 100644
--- a/main.cpp
+++ b/main.cpp
@@ -5,7 +5,11 @@
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
- CashFlow w;
+ QString filePath;
+ if (argc > 1) {
+ filePath = QString::fromLocal8Bit(argv[1]);
+ }
+ CashFlow w(nullptr, filePath);
w.show();
return a.exec();
}