diff options
| author | Calvin Morrison <calvin@pobox.com> | 2026-01-25 14:55:18 -0500 |
|---|---|---|
| committer | Calvin Morrison <calvin@pobox.com> | 2026-01-25 14:55:18 -0500 |
| commit | 9094e0ea4a49626188f79642bff22d57d6732899 (patch) | |
| tree | 8a00f31baab857c904e4c4a8ae4d1312c0946ab3 /main.cpp | |
| parent | a927d3bcae1f978362f90c74d64b40d276855410 (diff) | |
new features
- allow cashflowfile to passed via argv[1]
- auto jump to today on open
Diffstat (limited to 'main.cpp')
| -rw-r--r-- | main.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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(); } |
