summaryrefslogtreecommitdiff
path: root/src/mainwindow.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2018-12-26 19:03:23 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2018-12-26 19:03:23 +0100
commit1d1b1e025087fc99702beb14d70ead9291ed6470 (patch)
tree04c7c0bfb36eac628c5e8e09fc1228f0bdab586c /src/mainwindow.cc
parent5e11f70c5091434f8f92ab3aabb192b112552924 (diff)
Store lua code as 8 bit ascii instead of utf8.
Diffstat (limited to 'src/mainwindow.cc')
-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();