Patch #1646 2006-11-19 13:03

heromyth

Fixes for an exception for no existed plugin path.
Download
1646-Fixes_for_an_e.patch (1.1 KB)
Category
Plugin::Bugfix
Status
Accepted
Close date
2006-11-25 10:31
Assigned to
 
Index: src/sdk/pluginmanager.cpp
===================================================================
--- src/sdk/pluginmanager.cpp    (revision 3240)
+++ src/sdk/pluginmanager.cpp    (working copy)
@@ -753,6 +753,8 @@
 #endif
 
     int count = 0;
+    if(!wxDirExists(path))
+        return count;
     wxDir dir(path);
 
     if (!dir.IsOpened())
Index: src/sdk/configmanager.cpp
===================================================================
--- src/sdk/configmanager.cpp    (revision 3240)
+++ src/sdk/configmanager.cpp    (working copy)
@@ -1368,8 +1368,8 @@
         ConfigManager::data_path_global = wxStandardPathsBase::Get().GetDataDir();
 
     CreateDirRecursively(ConfigManager::config_folder);
-    CreateDirRecursively(ConfigManager::data_path_user   + _T("/plugins"));
-    CreateDirRecursively(ConfigManager::data_path_global + _T("/plugins"));
+    CreateDirRecursively(ConfigManager::data_path_user   + _T("/plugins/"));
+    CreateDirRecursively(ConfigManager::data_path_global + _T("/plugins/"));
     CreateDir(ConfigManager::data_path_user   + _T("/scripts"));
     CreateDir(ConfigManager::data_path_global + _T("/scripts"));