Mercurial > minori
diff src/main.cc @ 315:34347fd2a2de
session: allow printing status messages
...!
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Tue, 11 Jun 2024 14:16:40 -0400 |
parents | f31305b9f60a |
children | b1f4d1867ab1 |
line wrap: on
line diff
--- a/src/main.cc Tue Jun 11 13:29:45 2024 -0400 +++ b/src/main.cc Tue Jun 11 14:16:40 2024 -0400 @@ -11,8 +11,6 @@ #include <iostream> -Session session; - int main(int argc, char** argv) { QApplication app(argc, argv); app.setApplicationName("minori"); @@ -21,6 +19,7 @@ qRegisterMetaType<std::vector<std::string>>(); /* window.cc */ qRegisterMetaType<std::vector<int>>(); /* search.cc */ + qRegisterMetaType<std::string>(); session.config.Load(); Anime::db.LoadDatabaseFromDisk(); @@ -31,5 +30,8 @@ window.setWindowTitle("Minori"); window.show(); + /* do this before starting the app... */ + session.SetMainWindow(&window); + return app.exec(); }