Corretta la gestione dei nomi con path
git-svn-id: svn://10.65.10.50/trunk@5766 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
		
							parent
							
								
									e394195ac8
								
							
						
					
					
						commit
						bc00988010
					
				@ -65,8 +65,14 @@ word TExternal_app::run(
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
  TFilename path(_path);
 | 
			
		||||
  const TString name(path.name()); 
 | 
			
		||||
  
 | 
			
		||||
  TFilename comm_name(_path);
 | 
			
		||||
  int p = comm_name.find(' ');
 | 
			
		||||
  
 | 
			
		||||
  if (p >=0)
 | 
			
		||||
    comm_name.cut(p);
 | 
			
		||||
  
 | 
			
		||||
  TString name(comm_name.name()); 
 | 
			
		||||
  if (utente == TRUE)   // utente puo' essere 0 = No, 1 = Si, 3 = Forzatura
 | 
			
		||||
  {
 | 
			
		||||
    bool our_app = name.len() > 2;
 | 
			
		||||
@ -91,7 +97,7 @@ word TExternal_app::run(
 | 
			
		||||
  // save cwd
 | 
			
		||||
  xvt_fsys_save_dir();
 | 
			
		||||
 | 
			
		||||
  const TFilename dir(path.path()); 
 | 
			
		||||
  const TFilename dir(comm_name.path()); 
 | 
			
		||||
 | 
			
		||||
  if (dir.not_empty())
 | 
			
		||||
  {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user