Skip to content

Commit

Permalink
cppcheck: Fix another null pointer dereference warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxdude42 committed Jan 3, 2023
1 parent b85f983 commit 1b75b3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mythtv/libs/libmythui/mythdialogbox.cpp
Expand Up @@ -835,7 +835,8 @@ bool MythUISearchDialog::Create(void)
if (cancelButton)
connect(cancelButton, &MythUIButton::Clicked, this, &MythScreenType::Close);

connect(okButton, &MythUIButton::Clicked, this, &MythUISearchDialog::slotSendResult);
if (okButton)
connect(okButton, &MythUIButton::Clicked, this, &MythUISearchDialog::slotSendResult);

connect(m_itemList, &MythUIButtonList::itemClicked,
this, &MythUISearchDialog::slotSendResult);
Expand Down

0 comments on commit 1b75b3f

Please sign in to comment.