TRSE
TRSE copied to clipboard
TRT - Create music file and file paths
When creating a new TRT file on Windows, it is opened in the editor and '/' forward slashes are used for folders:
Save it and go to the file list to open it, a duplicate is opened as the file path for folders use '' back slashes.
On Windows it looks like other files also use '' backslashes, so need the new TRT creation to use \ as well.
Not directly related but also on Windows when creating a new project through a dialog, it fails to create a directory and main ras file. The solution is to create project directory after OK button is clicked:
void DialogNewProject::on_btnOk_clicked()
{
ok = true;
QDir().mkpath(m_dir);
m_ini->setString("default_project_dir",ui->leProjectDir->text());
close();
}
Added QDir().mkpath(m_dir);