sfx2/source/dialog/bluthsnd.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 3970eede36f4caca96118614c93d7348a7bd8346
Author: Tor Lillqvist <t...@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: */
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to