mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-08 08:40:55 +00:00
Add QIODevice::Text for text writing, to convert newlines. Refs #1246
This commit is contained in:
@@ -651,7 +651,7 @@ void PythonShell::on_saveScript_clicked()
|
||||
if(dirinfo.exists())
|
||||
{
|
||||
QFile f(filename);
|
||||
if(f.open(QIODevice::WriteOnly | QIODevice::Truncate))
|
||||
if(f.open(QIODevice::WriteOnly | QIODevice::Truncate | QIODevice::Text))
|
||||
{
|
||||
f.write(scriptEditor->getText(scriptEditor->textLength() + 1));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user