# HG changeset patch # User koda # Date 1373966067 -7200 # Node ID a501f5ec7b34e1eeac02208351db21c38a64c28a # Parent 3694d354289e18d82779c42c07eed5932fb730fa fromAscii is deprecated in qt5 diff -r 3694d354289e -r a501f5ec7b34 QTfrontend/ui/dialog/upload_video.cpp --- a/QTfrontend/ui/dialog/upload_video.cpp Tue Jul 16 11:14:03 2013 +0200 +++ b/QTfrontend/ui/dialog/upload_video.cpp Tue Jul 16 11:14:27 2013 +0200 @@ -291,7 +291,7 @@ QNetworkReply *reply = (QNetworkReply*)sender(); reply->deleteLater(); - location = QString::fromAscii(reply->rawHeader("Location")); + location = QString::fromLatin1(reply->rawHeader("Location")); if (location.isEmpty()) { QString errorStr = QMessageBox::tr("Error while sending metadata to youtube.com:\n"); diff -r 3694d354289e -r a501f5ec7b34 QTfrontend/ui/page/pagevideos.cpp --- a/QTfrontend/ui/page/pagevideos.cpp Tue Jul 16 11:14:03 2013 +0200 +++ b/QTfrontend/ui/page/pagevideos.cpp Tue Jul 16 11:14:27 2013 +0200 @@ -845,7 +845,7 @@ for (int i = 0; i < array.size(); i++) array[i] = array[i] ^ 0xC4 ^ i; array = array.toBase64(); - return QString::fromAscii(array.data()); + return QString::fromLatin1(array.data()); } static QString unprotectPass(QString str)