Changed: cbDirectoryChanged now displays a warning if it couldn't change directory

This commit is contained in:
kervala 2010-07-17 18:56:01 +02:00
parent ddeff78c93
commit 733e5f4b1a

View file

@ -254,11 +254,7 @@ void cbDirectoryChanged (IVariable &var)
// Update the running directory if needed
if (var.getName() == "RunningDirectory")
{
#ifdef NL_OS_WINDOWS
_chdir (vp.c_str());
#else
chdir (vp.c_str());
#endif
CPath::setCurrentPath(vp);
}
// Call the callback if provided