diff options
author | Rachit Gupta <rachitgupta1792@gmail.com> | 2014-07-11 21:50:54 +0530 |
---|---|---|
committer | Rachit Gupta <rachitgupta1792@gmail.com> | 2014-08-04 20:27:57 +0530 |
commit | d0f95525cbc7000669a18541f478d6e9c5d2be30 (patch) | |
tree | 05f8d659babfa962295cc3d81c3afc299de5f1c8 | |
parent | ff1e7a1df34e26b0e6b4a0d7694e1efa4d4bf1f0 (diff) |
Fixed crash when cancel is clicked without searching.
Change-Id: I67ca901270874794ec55d5b7db2cd18e6d3a997d
-rw-r--r-- | cui/source/options/personalization.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cui/source/options/personalization.cxx b/cui/source/options/personalization.cxx index 58606a84c2b3..2e53087ece47 100644 --- a/cui/source/options/personalization.cxx +++ b/cui/source/options/personalization.cxx @@ -159,7 +159,8 @@ IMPL_LINK( SelectPersonaDialog, ActionOK, PushButton*, /* pButton */ ) IMPL_LINK( SelectPersonaDialog, ActionCancel, PushButton*, /* pButton */ ) { - m_rSearchThread->StopExecution(); + if( m_rSearchThread.is() ) + m_rSearchThread->StopExecution(); EndDialog( RET_CANCEL ); return 0; |