summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRachit Gupta <rachitgupta1792@gmail.com>2014-06-14 21:30:20 +0530
committerRachit Gupta <rachitgupta1792@gmail.com>2014-08-04 20:27:50 +0530
commit8ef0b7b0e2da4b2c524c3f971b56e6eb44f45bf1 (patch)
treeefa96b1e5481dc453c617ba5a801e25c8ed8c786
parent61702f063c701497dbb95835586b33756750785e (diff)
Added error message to the progess label if something goes wrong.
Change-Id: If9e7a76bea49fa681e3fc7b3586b04fbbcbe279d
-rw-r--r--cui/source/options/personalization.cxx6
1 files changed, 6 insertions, 0 deletions
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() )