From fb776030fc1673bc22d8e9f8972ee9009438d6a3 Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周三, 20 12月 2023 00:10:50 +0800 Subject: [PATCH] Remove redundant API anyway --- 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