[Gui] remove superfluous nullptr checks

This commit is contained in:
Uwe
2022-07-18 03:17:42 +02:00
parent 53571f7196
commit 316a869b26
22 changed files with 32 additions and 32 deletions

View File

@@ -643,7 +643,7 @@ void MainWindow::activateWorkbench(const QString& name)
ParameterGrp::handle hGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/View");
bool saveWB = hGrp->GetBool("SaveWBbyTab", false);
QMdiSubWindow* subWin = d->mdiArea->activeSubWindow();
if (subWin /*!= nullptr*/ && saveWB) {
if (subWin && saveWB) {
QString currWb = subWin->property("ownWB").toString();
if (currWb.isEmpty() || currWb != name) {
subWin->setProperty("ownWB", name);