[Pkg-owncloud-commits] [owncloud-client] 483/498: Windows: Don't use UTF-8 arrows #3095

Sandro Knauß hefee-guest at moszumanska.debian.org
Tue Aug 11 14:49:20 UTC 2015


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit b5edc635a1030c0ab49e96996c7e4117493861f3
Author: Markus Goetz <markus at woboq.com>
Date:   Thu Aug 6 18:08:05 2015 +0200

    Windows: Don't use UTF-8 arrows #3095
---
 src/gui/folderstatusmodel.cpp | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/gui/folderstatusmodel.cpp b/src/gui/folderstatusmodel.cpp
index b740103..9c32c7d 100644
--- a/src/gui/folderstatusmodel.cpp
+++ b/src/gui/folderstatusmodel.cpp
@@ -709,11 +709,20 @@ void FolderStatusModel::slotSetProgress(const ProgressInfo &progress)
             fileProgressString = tr("Syncing %1").arg(allFilenames);
             if (estimatedDownBw > 0) {
                 fileProgressString.append(", ");
+// ifdefs: https://github.com/owncloud/client/issues/3095#issuecomment-128409294
+#ifdef Q_OS_WIN
+                fileProgressString.append(tr("download %1/s").arg(Utility::octetsToString(estimatedDownBw)));
+#else
                 fileProgressString.append(tr("\u2193" " %1/s").arg(Utility::octetsToString(estimatedDownBw)));
+#endif
             }
             if (estimatedUpBw > 0) {
                 fileProgressString.append(", ");
+ #ifdef Q_OS_WIN
+                fileProgressString.append(tr("upload %1/s").arg(Utility::octetsToString(estimatedUpBw)));
+#else
                 fileProgressString.append(tr("\u2191" " %1/s").arg(Utility::octetsToString(estimatedUpBw)));
+#endif
             }
         } else {
             //: Example text: "uploading foobar.png (2MB of 2MB)"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list