]> Shamusworld >> Repos - ttedit/blobdiff - src/mainwindow.cpp
Converted from Qt4 to Qt5.
[ttedit] / src / mainwindow.cpp
index 378c2ee9b2198c6772c0d1c511e5e61683ba5ced..25b63d11af9d534907a81fc3a3787cd660aeeb08 100644 (file)
@@ -191,6 +191,7 @@ void MainWindow::NewGlyph(void)
        editWnd->pts.Clear();
        ((TTEdit *)qApp)->charWnd->MakePathFromPoints(&(editWnd->pts));
        ((TTEdit *)qApp)->charWnd->update();
+//     editWnd->polyFirstPoint = true;
        editWnd->update();
 }
 
@@ -199,7 +200,7 @@ void MainWindow::OpenFile(void)
 {
        QString filename = QFileDialog::getOpenFileName(this, tr("Open Glyph File"),
                "./", tr("Glyph files (*.glyph)"));
-       FILE * file = fopen(filename.toAscii().data(), "r");
+       FILE * file = fopen(filename.toUtf8().data(), "r");
 
        //need to pop an error box here...
        if (file == 0)
@@ -218,7 +219,7 @@ void MainWindow::SaveFile(void)
 {
        QString filename = QFileDialog::getSaveFileName(this, tr("Save Glyph File"),
                "./", tr("Glyph files (*.glyph)"));
-       FILE * file = fopen(filename.toAscii().data(), "w");
+       FILE * file = fopen(filename.toUtf8().data(), "w");
 
        //need to pop an error box here...
        if (file == 0)