From 8ef0b7b0e2da4b2c524c3f971b56e6eb44f45bf1 Mon Sep 17 00:00:00 2001 From: Rachit Gupta Date: Sat, 14 Jun 2014 21:30:20 +0530 Subject: Added error message to the progess label if something goes wrong. Change-Id: If9e7a76bea49fa681e3fc7b3586b04fbbcbe279d --- cui/source/options/personalization.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cui/source/options/personalization.cxx b/cui/source/options/personalization.cxx index 41893a15eb57..4d6702c8edca 100644 --- a/cui/source/options/personalization.cxx +++ b/cui/source/options/personalization.cxx @@ -426,6 +426,8 @@ void SearchAndParseThread::execute() } catch (...) { + sProgress = "Something went wrong. Please try again."; + m_pPersonaDialog->SetProgress( sProgress ); return; } @@ -510,6 +512,8 @@ void SearchAndParseThread::execute() } catch ( const uno::Exception & ) { + sProgress = "Something went wrong. Please try again."; + m_pPersonaDialog->SetProgress( sProgress ); return; } @@ -533,6 +537,8 @@ void SearchAndParseThread::getPreviewFile( const OUString& rURL, OUString *pHead } catch (...) { + sProgress = "Something went wrong. Please try again."; + m_pPersonaDialog->SetProgress( sProgress ); return; } if ( !xStream.is() ) -- cgit