[Libreoffice-commits] core.git: Branch 'feature/gsoc14-personas' - cui/source
Rachit Gupta
rachitgupta1792 at gmail.com
Sat Jun 14 10:18:14 PDT 2014
cui/source/options/personalization.cxx | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit c57b0961cf9337436f14a4d6c51619bfe4924325
Author: Rachit Gupta <rachitgupta1792 at gmail.com>
Date: Sat Jun 14 21:30:20 2014 +0530
Added error message to the progess label if something goes wrong.
Change-Id: If9e7a76bea49fa681e3fc7b3586b04fbbcbe279d
diff --git a/cui/source/options/personalization.cxx b/cui/source/options/personalization.cxx
index dadb88f..2cc6cf8 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() )
More information about the Libreoffice-commits
mailing list