Skip to content

Commit 2b4589a

Browse files
committed
fix qt5 compilation
1 parent 2f8da6e commit 2b4589a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

qt/commandqueue.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ void CommandQueue::uploadFile(const QString &filename, mtp::ObjectFormat format)
107107
QFileInfo fi(filename);
108108
QString parentPath = fi.dir().path();
109109

110-
qDebug() << "uploading file " << filename << ", parent: " << parentPath << ", format: " << mtp::ToString(format);
110+
qDebug() << "uploading file " << filename << ", parent: " << parentPath << ", format: " << fromUtf8(mtp::ToString(format));
111111

112112
if (_directories.empty())
113113
{

qt/mainwindow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ void MainWindow::uploadFiles(const QStringList &files, mtp::ObjectFormat format)
616616
if (files.isEmpty())
617617
return;
618618

619-
qDebug() << "uploadFiles " << files << ", format: " << mtp::ToString(format);
619+
qDebug() << "uploadFiles " << files << ", format: " << fromUtf8(mtp::ToString(format));
620620
_uploadAnswer = 0;
621621
_proxyModel->setSourceModel(NULL);
622622
ProgressDialog progressDialog(this);

0 commit comments

Comments
 (0)