Switch Backtrace and Modules printing order

This commit is contained in:
manongjohn 2023-07-07 09:00:19 -04:00
parent 577ac1381c
commit 0e010dc115

View file

@ -611,14 +611,6 @@ bool CrashHandler::trigger(const QString reason, bool showDialog) {
}
} catch (...) {
}
#ifdef HAS_MODULES
try {
out.append("\n==== Modules ====\n");
printModules(out);
out.append("==== End ====\n");
} catch (...) {
}
#endif
#ifdef HAS_BACKTRACE
try {
out.append("\n==== Backtrace ====\n");
@ -627,6 +619,14 @@ bool CrashHandler::trigger(const QString reason, bool showDialog) {
} catch (...) {
}
#endif
#ifdef HAS_MODULES
try {
out.append("\n==== Modules ====\n");
printModules(out);
out.append("==== End ====\n");
} catch (...) {
}
#endif
// Save to crash information to file
FILE *fw = fopen(fpCrsh, "w");