mirror of
				https://github.com/saitohirga/WSJT-X.git
				synced 2025-11-03 13:30:52 -05:00 
			
		
		
		
	Include path of .WAV file in .WAV file write error message box
Thanks to Mike, W9MDB, for this contribution. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8626 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
		
							parent
							
								
									c59c650fed
								
							
						
					
					
						commit
						8f8dfdb120
					
				@ -1448,13 +1448,14 @@ QString MainWindow::save_wave_file (QString const& name, short const * data, int
 | 
			
		||||
      {{{'I','C','R','D'}}, QDateTime::currentDateTime ()
 | 
			
		||||
                          .toString ("yyyy-MM-ddTHH:mm:ss.zzzZ").toLocal8Bit ()},
 | 
			
		||||
      {{{'I','C','M','T'}}, comment.toLocal8Bit ()},
 | 
			
		||||
  };
 | 
			
		||||
  BWFFile wav {format, name + ".wav", list_info};
 | 
			
		||||
        };
 | 
			
		||||
  auto file_name = name + ".wav";
 | 
			
		||||
  BWFFile wav {format, file_name, list_info};
 | 
			
		||||
  if (!wav.open (BWFFile::WriteOnly)
 | 
			
		||||
      || 0 > wav.write (reinterpret_cast<char const *> (data)
 | 
			
		||||
                        , sizeof (short) * seconds * format.sampleRate ()))
 | 
			
		||||
    {
 | 
			
		||||
      return wav.errorString ();
 | 
			
		||||
      return file_name + ": " + wav.errorString ();
 | 
			
		||||
    }
 | 
			
		||||
  return QString {};
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user