diff --git a/src/MEGASync/MEGASync.pro b/src/MEGASync/MEGASync.pro index 8809f5ff0b..0897a89aa3 100644 --- a/src/MEGASync/MEGASync.pro +++ b/src/MEGASync/MEGASync.pro @@ -147,6 +147,11 @@ TRANSLATIONS = \ CODECFORTR = UTF8 +msvc { + QMAKE_CFLAGS += /utf-8 + QMAKE_CXXFLAGS += /utf-8 +} + win32 { greaterThan(QT_MAJOR_VERSION, 4) { greaterThan(QT_MINOR_VERSION, 1) { diff --git a/src/MEGASync/gui/NodeSelector.cpp b/src/MEGASync/gui/NodeSelector.cpp index 61436ee447..8643126e48 100644 --- a/src/MEGASync/gui/NodeSelector.cpp +++ b/src/MEGASync/gui/NodeSelector.cpp @@ -360,6 +360,13 @@ void NodeSelector::onSelectionChanged(QItemSelection, QItemSelection) if (node) { selectedFolder = node->getHandle(); + if (node->getType() == MegaNode::TYPE_FILE) { + QString fileSizeText = QString::fromUtf8("File size: %L1 byte.").arg(node->getSize()); + ui->label->setText(fileSizeText); + } + else { + ui->label->setText(QString()); + } } else {