[vlmc-devel] commit: ShareOnInternet.cpp: Change upload status label to show kb instead of bytes uploaded. ( Rohit Yadav )

git at videolan.org git at videolan.org
Sun Sep 26 17:09:12 CEST 2010


vlmc | branch: master | Rohit Yadav <rohityadav89 at gmail.com> | Sun Sep 26 20:49:37 2010 +0530| [8a3715d5f02087c9f97fad327b1a3081155c2c51] | committer: Rohit Yadav 

ShareOnInternet.cpp: Change upload status label to show kb instead of bytes uploaded.
Include debug msg to say upload finshed and remove redundant error debug msg, already
handled in services/YouTube.

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=8a3715d5f02087c9f97fad327b1a3081155c2c51
---

 src/Gui/export/ShareOnInternet.cpp |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/Gui/export/ShareOnInternet.cpp b/src/Gui/export/ShareOnInternet.cpp
index 5aee349..64a2776 100644
--- a/src/Gui/export/ShareOnInternet.cpp
+++ b/src/Gui/export/ShareOnInternet.cpp
@@ -151,6 +151,8 @@ ShareOnInternet::authFinished()
 void
 ShareOnInternet::uploadFinished( QString result )
 {
+    qDebug() << "[SHARE ON INTERNET]: UPLOAD FINISHED";
+
     /* Add code here to abort stuff */
     m_ui.progressBar->setEnabled( false );
     m_ui.progressBar->setVisible( false );
@@ -177,14 +179,13 @@ ShareOnInternet::uploadProgress(qint64 received, qint64 total)
     {
         qint64 progress = received * 100 / total;
         m_ui.progressBar->setValue( progress );
-        m_ui.statusLabel->setText( tr("%1 Bytes Uploaded").arg( received ) );
+        m_ui.statusLabel->setText( tr("%1 kB Uploaded").arg( received / 1024 ) );
     }
 }
 
 void
 ShareOnInternet::serviceError(QString e)
 {
-    qDebug() << "[SHARE ON INTERNET]: ERROR = " << e;
     m_ui.statusLabel->setText( e );
     emit error( e );
 }



More information about the Vlmc-devel mailing list