[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]

[XaraXtreme-commits] Commit Complete



Commit by  : luke
Repository : xara
Revision   : 1005
Date       : Thu May 11 15:13:46 BST 2006

Changed paths:
   M /Trunk/XaraLX/wxOil/oilfltrs.cpp

Don't report an error if plugin config dir not presetn


Diff:
Index: Trunk/XaraLX/wxOil/oilfltrs.cpp
===================================================================
--- Trunk/XaraLX/wxOil/oilfltrs.cpp	(revision 1004)
+++ Trunk/XaraLX/wxOil/oilfltrs.cpp	(revision 1005)
@@ -347,9 +347,13 @@
 		delete pFilter;
 #endif
 
+	// Check the config dir exists, if not bomb out
 	const static wxString	g_strConfigPath( _T("/usr/share/xaralx/filters") );
+	if( !wxDir::Exists( g_strConfigPath ) )
+		return TRUE;
+
+	// Setup the directory scan
 	wxDir	dir( g_strConfigPath );
-	
 	if( !dir.IsOpened() )
 	{
 		// wxDir is susposed to explain why this failed, so we can just 


Xara