X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=main.cpp;h=6ca5ecdce930bd484ecba1486fd582e3d398d3c8;hb=971d4957bed4eba223b0ace948cfb5f991e0847f;hp=c2d6cd307382440281b75687c082c06ab7749d4f;hpb=72afdc62f4ea865bdf7a3f316ec96bcb932c9d0a;p=pkanalytics diff --git a/main.cpp b/main.cpp index c2d6cd3..6ca5ecd 100644 --- a/main.cpp +++ b/main.cpp @@ -147,9 +147,6 @@ int main(int argc, char *argv[]) QApplication app(argc, argv); sqlite3 *db = open_db("ultimate.db"); - // TODO: do this on-demand instead, from a menu - export_to_json(db, "ultimate.json"); - int requested_match = -1; if (argc >= 2) { requested_match = atoi(argv[1]); @@ -166,6 +163,10 @@ int main(int argc, char *argv[]) mainWindow.resize(QSize(1280, 720)); mainWindow.show(); - return app.exec(); + int ret = app.exec(); + + // TODO: do this on-demand instead, from a menu + export_to_json(db, "ultimate.json"); + return ret; }