|
|
|
|
@ -135,6 +135,15 @@ int main(int argc, char *argv[]) {
|
|
|
|
|
cfg.save(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
QString debugFile = cfg.debugFile(); |
|
|
|
|
if (debugFile.isEmpty()) debugFile = "chatgui.log"; |
|
|
|
|
if (!QDir::isAbsolutePath(debugFile)) |
|
|
|
|
debugFile = QCoreApplication::applicationDirPath() + "/" + debugFile; |
|
|
|
|
if (cfg.debugFile() != debugFile) { |
|
|
|
|
cfg.setDebugFile(debugFile); |
|
|
|
|
cfg.save(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
DbManager db; |
|
|
|
|
MainWindow w(nullptr, &db, cfgPath, dbPath, cfg.debugFile(), |
|
|
|
|
cfg.debugLevel(), cfg.debugCategories()); |
|
|
|
|
|