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; }