summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2017-06-26 22:20:19 +0200
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2017-06-27 09:22:52 +0200
commit9674704cb721f600d678788aa5d9392ad410c330 (patch)
treef8cc872450d0ce3bbb1c3126f93969957fb921be /vcl
parenta08c833a5d61ba806fe2875e7b84fd11b9856b58 (diff)
gpg4libre: Show error message when signing fails
Change-Id: I58f3febaaaaa225952e87ad3f092950ace37d15d Reviewed-on: https://gerrit.libreoffice.org/39283 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/msgbox.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/vcl/source/window/msgbox.cxx b/vcl/source/window/msgbox.cxx
index dfda1fabf11d..26012733eaf5 100644
--- a/vcl/source/window/msgbox.cxx
+++ b/vcl/source/window/msgbox.cxx
@@ -416,6 +416,16 @@ Image WarningBox::GetStandardImage()
return ImplGetSVData()->maWinData.maMsgBoxImgList[2];
}
+ErrorBox::ErrorBox( vcl::Window* pParent, const OUString& rMessage ) :
+ MessBox( pParent, WB_OK | WB_DEF_OK, OUString(), rMessage )
+{
+ // Default Text is the display title from the application
+ if ( GetText().isEmpty() )
+ SetText( Application::GetDisplayName() );
+
+ SetImage( ErrorBox::GetStandardImage() );
+}
+
ErrorBox::ErrorBox( vcl::Window* pParent, WinBits nStyle,
const OUString& rMessage ) :
MessBox( pParent, nStyle, OUString(), rMessage )