summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2018-10-10 23:13:05 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-11 09:10:04 +0200
commit8b44c2c525a663dbee3d88785ddcd0d5781002da (patch)
treec610b7858552702afbba85a91651122b94aa8fff /dbaccess
parentac9c14dbbd3a4341de0aa1b1dbc37ad2ce69398c (diff)
tdf#120478: fix wrong icon when JDBC driver test fails
Change-Id: I1d96e4a5e091caddf46131385ff5274521844fa9 Reviewed-on: https://gerrit.libreoffice.org/61637 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/dlg/DBSetupConnectionPages.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/dbaccess/source/ui/dlg/DBSetupConnectionPages.cxx b/dbaccess/source/ui/dlg/DBSetupConnectionPages.cxx
index 69b46357d2c1..57c91bf5dc75 100644
--- a/dbaccess/source/ui/dlg/DBSetupConnectionPages.cxx
+++ b/dbaccess/source/ui/dlg/DBSetupConnectionPages.cxx
@@ -674,7 +674,8 @@ using namespace ::com::sun::star;
}
#endif
const char* pMessage = bSuccess ? STR_JDBCDRIVER_SUCCESS : STR_JDBCDRIVER_NO_SUCCESS;
- OSQLMessageBox aMsg(GetFrameWeld(), DBA_RES(pMessage), OUString());
+ const MessageType mt = bSuccess ? MessageType::Info : MessageType::Error;
+ OSQLMessageBox aMsg(GetFrameWeld(), DBA_RES(pMessage), OUString(), MessBoxStyle::Ok | MessBoxStyle::DefaultOk, mt);
aMsg.run();
}