QTfrontend/ui/page/pagevideos.cpp
branchflibqtfrontend
changeset 8218 a61eacecf091
parent 8203 2c98ec41697a
child 8330 aaefa587e277
child 8362 89a6b7cc6f95
--- a/QTfrontend/ui/page/pagevideos.cpp	Tue Dec 04 03:27:12 2012 +0100
+++ b/QTfrontend/ui/page/pagevideos.cpp	Tue Dec 04 03:54:42 2012 +0100
@@ -862,7 +862,7 @@
     int row = filesTable->currentRow();
     VideoItem * item = nameItem(row);
 
-    if (item->pUploading)
+    if (item->pUploading) //Act as 'cancel uploading' button
     {
         // ask user if (s)he is serious
         QMessageBox reallyStopMsg(this);
@@ -874,9 +874,10 @@
 
         if (reallyStopMsg.exec() != QMessageBox::Ok)
             return;
-        item->pUploading->deleteLater();
+        item->pUploading->abort();
+        btnToYouTube->setText(QPushButton::tr("Upload to YouTube"));
         filesTable->setCellWidget(row, vcProgress, NULL); // remove progress bar
-        numUploads--;
+        //numUploads--;
         return;
     }