Skip to content

Commit 2629e21

Browse files
committed
crash: initialize QApplication after logging to run cat filter
1 parent b4c62b8 commit 2629e21

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/crash/main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ void recordCrashInfo(const QDir& crashDir, const InstanceInfo& instance) {
152152
void qsCheckCrash(int argc, char** argv) {
153153
auto fd = qEnvironmentVariable("__QUICKSHELL_CRASH_DUMP_FD");
154154
if (fd.isEmpty()) return;
155-
auto app = QApplication(argc, argv);
156155

157156
RelaunchInfo info;
158157

@@ -177,6 +176,8 @@ void qsCheckCrash(int argc, char** argv) {
177176
info.logRules
178177
);
179178

179+
auto app = QApplication(argc, argv);
180+
180181
auto crashDir = QsPaths::crashDir(info.instance.instanceId);
181182

182183
qCInfo(logCrashReporter) << "Starting crash reporter...";

0 commit comments

Comments
 (0)