X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fapplicationwindow.cpp;h=f2dc923b5c2313b852ee56109efe0cc9434d8e33;hb=6c1279871f6bb86bc59e2561b6a7f74ab081f71e;hp=ad3bc8d9ec0b4c209087f7d58d39e8c79c427fc2;hpb=7f3a6b11585376eecd80979ec3da2346c5314d88;p=architektonas diff --git a/src/applicationwindow.cpp b/src/applicationwindow.cpp index ad3bc8d..f2dc923 100644 --- a/src/applicationwindow.cpp +++ b/src/applicationwindow.cpp @@ -129,7 +129,7 @@ void ApplicationWindow::FileOpen(void) if (filename.isEmpty()) return; - FILE * file = fopen(filename.toAscii().data(), "r"); + FILE * file = fopen(filename.toUtf8().data(), "r"); if (file == 0) { @@ -168,7 +168,7 @@ void ApplicationWindow::FileSave(void) documentName = QFileDialog::getSaveFileName(this, tr("Save Drawing"), "", tr("Architektonas drawings (*.drawing)")); - FILE * file = fopen(documentName.toAscii().data(), "w"); + FILE * file = fopen(documentName.toUtf8().data(), "w"); if (file == 0) { @@ -189,7 +189,7 @@ void ApplicationWindow::FileSave(void) msg.setIcon(QMessageBox::Critical); msg.exec(); // In this case, we should unlink the created file, since it's not right... -// unlink(documentName.toAscii().data()); +// unlink(documentName.toUtf8().data()); QFile::remove(documentName); return; }