mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-25 02:10:53 +00:00
Changed: cbDirectoryChanged now displays a warning if it couldn't change directory
This commit is contained in:
parent
4441f54bba
commit
a759eb65ef
1 changed files with 1 additions and 5 deletions
|
@ -254,11 +254,7 @@ void cbDirectoryChanged (IVariable &var)
|
||||||
// Update the running directory if needed
|
// Update the running directory if needed
|
||||||
if (var.getName() == "RunningDirectory")
|
if (var.getName() == "RunningDirectory")
|
||||||
{
|
{
|
||||||
#ifdef NL_OS_WINDOWS
|
CPath::setCurrentPath(vp);
|
||||||
_chdir (vp.c_str());
|
|
||||||
#else
|
|
||||||
chdir (vp.c_str());
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Call the callback if provided
|
// Call the callback if provided
|
||||||
|
|
Loading…
Reference in a new issue