[TD] Gui: remove some superfluous nullptr checks

This commit is contained in:
Uwe
2022-07-19 02:49:46 +02:00
parent 140e89e858
commit b514f47c21
38 changed files with 154 additions and 160 deletions

View File

@@ -466,7 +466,7 @@ void TaskSectionView::updateSectionView(void)
}
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Edit SectionView"));
if (m_section != nullptr) {
if (m_section) {
Command::doCommand(Command::Doc,"App.ActiveDocument.%s.SectionDirection = '%s'",
m_sectionName.c_str(),m_dirName.c_str());
Command::doCommand(Command::Doc,