summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mainwindow.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mainwindow.cc b/src/mainwindow.cc
index ba6c779..8271eb6 100644
--- a/src/mainwindow.cc
+++ b/src/mainwindow.cc
@@ -55,7 +55,7 @@ MainWindow::MainWindow(QString p)
file.open(QIODevice::ReadOnly);
editor->setPlainText(file.readAll());
file.close();
-
+
out = new OutputWindow();
splitter->addWidget(out);
@@ -79,7 +79,7 @@ void MainWindow::reset()
QFile file(program);
file.open(QIODevice::WriteOnly);
QString code = editor->toPlainText();
- file.write(code.toStdString().c_str(), code.length());
+ file.write(code.toLocal8Bit());
file.close();
out->stopScript();
l->stopScript();