diff options
author | Rachit Gupta <rachitgupta1792@gmail.com> | 2014-07-11 21:50:54 +0530 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2014-08-14 19:43:33 +0200 |
commit | 01153faccf6d20b67f797581e60885165a83e2aa (patch) | |
tree | 9e15588c60fe5a1d270642cd4f1eff86df7f417c /cui | |
parent | e372d28cbd29cbcd1d36e397a681693272cf9407 (diff) |
Fixed crash when cancel is clicked without searching.
Change-Id: I67ca901270874794ec55d5b7db2cd18e6d3a997d
Diffstat (limited to 'cui')
-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; |