From e3c605a796b6f09c6b38a206fd110992ff5d1e4c Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Fri, 28 Sep 2018 16:15:01 +0200 Subject: breakpad: try to write session on crash --- src/mainwindow/mainwindow.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/mainwindow') diff --git a/src/mainwindow/mainwindow.cpp b/src/mainwindow/mainwindow.cpp index 77b8ad3..cc67b3d 100644 --- a/src/mainwindow/mainwindow.cpp +++ b/src/mainwindow/mainwindow.cpp @@ -89,6 +89,16 @@ MainWindow::MainWindow(const std::unique_ptr &config, QWidget *pa } show(); +#ifdef QT_DEBUG + { + auto *debugMenu = ui->menubar->addMenu(tr("Debug")); + + debugMenu->addAction(tr("Crash"), []() { + delete reinterpret_cast(0xFEE1DEAD); + }); + }; +#endif + // connect smolbote menu { connect(ui->actionNewSubwindow, &QAction::triggered, this, [this, &config]() { -- cgit v1.2.1