[vlmc-devel] commit: ShareOnInternet: Display error based on result. (Rohit Yadav )

git at videolan.org git at videolan.org
Tue Nov 16 16:46:46 CET 2010


vlmc | branch: master | Rohit Yadav <rohityadav89 at gmail.com> | Tue Nov 16 21:34:01 2010 +0530| [99d4be63882bf8f5732a33a4d2a459ff40b897bb] | committer: Rohit Yadav 

ShareOnInternet: Display error based on result.

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

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

diff --git a/src/Gui/export/ShareOnInternet.cpp b/src/Gui/export/ShareOnInternet.cpp
index 64a2776..4f55767 100644
--- a/src/Gui/export/ShareOnInternet.cpp
+++ b/src/Gui/export/ShareOnInternet.cpp
@@ -157,12 +157,19 @@ ShareOnInternet::uploadFinished( QString result )
     m_ui.progressBar->setEnabled( false );
     m_ui.progressBar->setVisible( false );
 
-    QApplication::clipboard()->setText( result );
+    QString msg;
+    if( result != "" )
+    {
+        msg = tr( "Your video has been uploaded."
+                  "\nURL (copied to your clipboard):\n%1"
+                  "\n\nOpen this in your default web browser?" ).arg( result );
+        QApplication::clipboard()->setText( result );
+    }
+    else
+        msg = tr( "Some error has occured while processing your video."
+                  "\nPlease check with your video service provider." );
 
-    if( QMessageBox::information( NULL, tr("Video Uploaded"),
-            tr("Your video has been uploaded."
-               "\nURL (copied to your clipboard):\n%1"
-               "\n\nOpen video in your default web browser?").arg( result ),
+    if( QMessageBox::information( NULL, tr("Video Uploaded"), msg,
             QMessageBox::Open | QMessageBox::Close ) == QMessageBox::Open )
     {
         QDesktopServices::openUrl( result );



More information about the Vlmc-devel mailing list