]> Shamusworld >> Repos - warehouse-man-deluxe/blobdiff - src/editorwindow.cpp
Converted from Qt4 to Qt5.
[warehouse-man-deluxe] / src / editorwindow.cpp
index ab49a8c22642948a66e73d57d597324067d6a90c..4b32ca2f89d186f40e5bfb5207b25870fc8384e6 100644 (file)
@@ -106,7 +106,7 @@ void EditorWindow::SetEditorLevel(int level)
 void EditorWindow::SetNewName(QWidget * widget, QAbstractItemDelegate::EndEditHint)
 {
        QString newName = reinterpret_cast<QLineEdit *>(widget)->text();
-       editor->SetNameOnCurrentLevel(newName.toAscii().data());
+       editor->SetNameOnCurrentLevel(newName.toUtf8().data());
 }