[Libreoffice-commits] core.git: sfx2/source
Tor Lillqvist
tml at collabora.com
Mon Oct 3 15:29:14 UTC 2016
sfx2/source/dialog/bluthsnd.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 3970eede36f4caca96118614c93d7348a7bd8346
Author: Tor Lillqvist <tml at collabora.com>
Date: Mon Oct 3 18:16:32 2016 +0300
Surely this is Linux-only code
The initial commit in 2012 even says so, and nothing has changed it
since.
Feel free to fix more properly by making sure this code can be called
only on Linux..
Change-Id: Idb0a2b5594daa0cde7f4797b51ba3e5876170f9f
diff --git a/sfx2/source/dialog/bluthsnd.cxx b/sfx2/source/dialog/bluthsnd.cxx
index 9a0e89d..ecbb445 100644
--- a/sfx2/source/dialog/bluthsnd.cxx
+++ b/sfx2/source/dialog/bluthsnd.cxx
@@ -38,6 +38,9 @@ SfxBluetoothModel::SendMailResult SfxBluetoothModel::SaveAndSend( const css::uno
SfxBluetoothModel::SendMailResult SfxBluetoothModel::Send( const css::uno::Reference< css::frame::XFrame >& /*xFrame*/ )
{
+#ifndef LINUX
+ return SEND_MAIL_ERROR;
+#else
char bthsend[300];
SendMailResult eResult = SEND_MAIL_OK;
OUString aFileName = maAttachedDocuments[0];
@@ -45,6 +48,7 @@ SfxBluetoothModel::SendMailResult SfxBluetoothModel::Send( const css::uno::Refer
if( !system( bthsend ) )
eResult = SEND_MAIL_ERROR;
return eResult;
+#endif
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
More information about the Libreoffice-commits
mailing list