cui/source/options/personalization.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 9f15a103b627682aeabf1e87f0b3323ed671e236
Author: Rachit Gupta <rachitgupta1...@gmail.com>
Date:   Fri Jul 11 21:50:54 2014 +0530

    Fixed crash when cancel is clicked without searching.
    
    Change-Id: I67ca901270874794ec55d5b7db2cd18e6d3a997d

diff --git a/cui/source/options/personalization.cxx 
b/cui/source/options/personalization.cxx
index d69076e..905801d 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;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to