mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-24 07:22:04 +08:00
@@ -10,7 +10,7 @@
|
||||
|
||||
static MainWindow *main_win = nullptr;
|
||||
void qLogMessageHandler(QtMsgType type, const QMessageLogContext &context, const QString &msg) {
|
||||
main_win->showStatusMessage(msg);
|
||||
if (main_win) main_win->showStatusMessage(msg);
|
||||
}
|
||||
|
||||
MainWindow::MainWindow() : QWidget() {
|
||||
@@ -118,6 +118,7 @@ void MainWindow::dockCharts(bool dock) {
|
||||
}
|
||||
|
||||
void MainWindow::closeEvent(QCloseEvent *event) {
|
||||
main_win = nullptr;
|
||||
if (floating_window)
|
||||
floating_window->deleteLater();
|
||||
QWidget::closeEvent(event);
|
||||
|
||||
Reference in New Issue
Block a user