diff --git a/QtScrcpy/adb/adbprocess.cpp b/QtScrcpy/adb/adbprocess.cpp index 68ff7d9..f060a81 100644 --- a/QtScrcpy/adb/adbprocess.cpp +++ b/QtScrcpy/adb/adbprocess.cpp @@ -62,16 +62,16 @@ void AdbProcess::initSignals() connect(this, &QProcess::readyReadStandardError, this, [this](){ - QString tmp = QString::fromLocal8Bit(readAllStandardError()).trimmed(); + QString tmp = QString::fromUtf8(readAllStandardError()).trimmed(); m_errorOutput += tmp; - qWarning(QString("AdbProcess::error:%1").arg(tmp).toUtf8()); + qWarning(QString("AdbProcess::error:%1").arg(tmp).toStdString().data()); }); connect(this, &QProcess::readyReadStandardOutput, this, [this](){ - QString tmp = QString::fromLocal8Bit(readAllStandardOutput()).trimmed(); + QString tmp = QString::fromUtf8(readAllStandardOutput()).trimmed(); m_standardOutput += tmp; - qInfo(QString("AdbProcess::out:%1").arg(tmp).toUtf8()); + qInfo(QString("AdbProcess::out:%1").arg(tmp).toStdString().data()); }); connect(this, &QProcess::started, this, diff --git a/QtScrcpy/device/ui/videoform.cpp b/QtScrcpy/device/ui/videoform.cpp index ac3124b..3f6bbc9 100644 --- a/QtScrcpy/device/ui/videoform.cpp +++ b/QtScrcpy/device/ui/videoform.cpp @@ -411,5 +411,5 @@ void VideoForm::dropEvent(QDropEvent *event) m_fileHandler->installApkRequest(m_serial, file); return; } - m_fileHandler->pushFileRequest(m_serial, file, Config::getInstance().getPushFilePath()); + m_fileHandler->pushFileRequest(m_serial, file, Config::getInstance().getPushFilePath() + fileInfo.fileName()); }