Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,8 @@ set(CMAKE_AUTORCC ON)

# Add executable
add_executable(klog WIN32 MACOSX_BUNDLE
profilemanager.cpp profilemanager.h
startprofiledialog.cpp startprofiledialog.h
${KLOG_SOURCES}
${KLOG_HEADERS}
${SRC_UI}
Expand Down
11 changes: 11 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
* *
*****************************************************************************/
#include <QtWidgets>
#include "profilemanager.h"
#include "startprofiledialog.h"
// #include <QtSql>
#include <QTranslator>
// #include <cstdlib>
Expand Down Expand Up @@ -359,6 +361,15 @@ int main(int argc, char *argv[])
splash.showMessage("Creating window...");
QApplication::processEvents();

ProfileManager profileManager;
QString profileErr;
if (!profileManager.ensureSchemaAndMigrate(&profileErr))
qWarning() << "Profiles:" << profileErr;
splash.hide();
const int activeProfileId = StartProfileDialog::chooseProfileOnStartup(&profileManager, &world, &dataProxy);
if (activeProfileId < 0)
return 0;

MainWindow mw(&dataProxy, &world);

//qInfo() << "[KLOG-TIMING] main 081 - MainWindow ctor:" << timer.elapsed() << "ms"; timer.restart();
Expand Down
Loading
Loading