summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRachit Gupta <rachitgupta1792@gmail.com>2014-06-14 21:30:20 +0530
committerRachit Gupta <rachitgupta1792@gmail.com>2014-06-14 22:46:55 +0530
commitc57b0961cf9337436f14a4d6c51619bfe4924325 (patch)
tree80ca84b4b5026593f311feee58419b5cbe9abe07
parent8cd23b0862cf9de31babd1859b8968c6801d6272 (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 dadb88f6fe17..2cc6cf8e303a 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() )