[Libreoffice-commits] .: basic/source

François Tigeot ftigeot at kemper.freedesktop.org
Sat May 7 03:27:07 PDT 2011


 basic/source/app/dialogs.cxx |   10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

New commits:
commit 0c2076a5eaadd1e1e431e0b82fea3b6149bbd91b
Author: Francois Tigeot <ftigeot at wolfpond.org>
Date:   Sat May 7 12:23:58 2011 +0200

    Fix previous commit.

diff --git a/basic/source/app/dialogs.cxx b/basic/source/app/dialogs.cxx
index 8551e22..64bc78b 100644
--- a/basic/source/app/dialogs.cxx
+++ b/basic/source/app/dialogs.cxx
@@ -204,12 +204,18 @@ OptConfEdit::OptConfEdit( Window* pParent, sal_uInt16 nResCheck, sal_uInt16 nRes
     rBase.SetModifyHdl( LINK( this, OptConfEdit, BaseModifyHdl ) );
 }
 
+#if defined(WNT)
+    #define FSYS_STYLE_DEFAULT FSYS_STYLE_NTFS
+# else
+    #define FSYS_STYLE_DEFAULT FSYS_STYLE_UNX
+#endif
+
 void OptConfEdit::Reload( Config &aConf )
 {
     ConfEdit::Reload( aConf );
 
     DirEntry aCalculatedHIDDir( rBase.GetValue() );
-    aCalculatedHIDDir += DirEntry( "global/hid", DEFSTYLE );
+    aCalculatedHIDDir += DirEntry( "global/hid", FSYS_STYLE_DEFAULT );
 
     DirEntry aCurrentHIDDir( aEdit.GetText() );
 
@@ -231,7 +237,7 @@ IMPL_LINK( OptConfEdit, BaseModifyHdl, Edit*, EMPTYARG )
     if ( aCheck.IsChecked() )
     {
         DirEntry aCalculatedHIDDir( rBase.GetValue() );
-        aCalculatedHIDDir += DirEntry( "global/hid", DEFSTYLE );
+        aCalculatedHIDDir += DirEntry( "global/hid", FSYS_STYLE_DEFAULT );
         aEdit.SetText( aCalculatedHIDDir.GetFull() );
     }
     return 0;


More information about the Libreoffice-commits mailing list