From a5372ac566469efb59e6cfb29a695021c7c3528d Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周三, 20 12月 2023 00:53:42 +0800 Subject: [PATCH] Add TODO --- examples/mainwindow/mainwindow.cpp | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/examples/mainwindow/mainwindow.cpp b/examples/mainwindow/mainwindow.cpp index 96736de..e0df17e 100644 --- a/examples/mainwindow/mainwindow.cpp +++ b/examples/mainwindow/mainwindow.cpp @@ -108,9 +108,7 @@ void MainWindow::installWindowAgent() { // 1. Setup window agent auto agent = new QWK::WidgetWindowAgent(this); - if (!agent->setup(this)) { - qFatal("QWK failed to initialize."); - } + agent->setup(this); // 2. Construct your title bar auto menuBar = []() { -- Gitblit v1.9.1