summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRachit Gupta <rachitgupta1792@gmail.com>2014-07-11 21:50:54 +0530
committerRachit Gupta <rachitgupta1792@gmail.com>2014-08-04 20:27:57 +0530
commitd0f95525cbc7000669a18541f478d6e9c5d2be30 (patch)
tree05f8d659babfa962295cc3d81c3afc299de5f1c8
parentff1e7a1df34e26b0e6b4a0d7694e1efa4d4bf1f0 (diff)
Fixed crash when cancel is clicked without searching.
Change-Id: I67ca901270874794ec55d5b7db2cd18e6d3a997d
-rw-r--r--cui/source/options/personalization.cxx3
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;