Skip to content

Commit

Permalink
Fix crash on closing iOS chat dialog
Browse files Browse the repository at this point in the history
Using close() would crash due to a null pointer dereference
  • Loading branch information
ann0see committed Oct 14, 2024
1 parent 18285f9 commit dd375d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chatdlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ CChatDlg::CChatDlg ( QWidget* parent ) : CBaseDlg ( parent, Qt::Window ) // use
pMenu->addMenu ( pEditMenu );
#if defined( Q_OS_IOS )
QAction* action = pMenu->addAction ( tr ( "&Close" ) );
connect ( action, SIGNAL ( triggered() ), this, SLOT ( close() ) );
connect ( action, SIGNAL ( triggered() ), this, SLOT ( hide() ) );
#endif

#if defined( ANDROID ) || defined( Q_OS_ANDROID )
Expand Down

0 comments on commit dd375d9

Please sign in to comment.