From 62f50f9458d4c29f452b6f42db48392b7144515f Mon Sep 17 00:00:00 2001 From: Sergio Martins Date: Thu, 17 Dec 2020 19:08:00 +0000 Subject: [PATCH] Minor coding style --- src/MainWindowBase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MainWindowBase.cpp b/src/MainWindowBase.cpp index 4985e49a..a32ad76e 100644 --- a/src/MainWindowBase.cpp +++ b/src/MainWindowBase.cpp @@ -386,7 +386,7 @@ void MainWindowBase::overlayOnSideBar(DockWidgetBase *dw) return; const SideBar *sb = sideBarForDockWidget(dw); - if (sb == nullptr) { + if (!sb) { qWarning() << Q_FUNC_INFO << "You need to add the dock widget to the sidebar before you can overlay it"; return; }