# HG changeset patch # User O. Michael Hartman # Date 1354589682 -3600 # Node ID a61eacecf09129f20280116dd2f03768c6ace4c3 # Parent 4a7535d17d575131c781cb595224b17d30dbb9b1 GCI2012: Fix Cancelling Video Uploads diff -r 4a7535d17d57 -r a61eacecf091 QTfrontend/ui/page/pagevideos.cpp --- 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; }