Commit 8a3715d5 authored by Rohit Yadav's avatar 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.
parent 9f0cf2e4
......@@ -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 );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment