mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-15 00:29:22 +00:00
Add QIODevice::Text for text writing, to convert newlines. Refs #1246
This commit is contained in:
5 files changed
+10
-5
No files matched your search
@@ -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