[PC-BSD Commits] r5649 - pcbsd/trunk/SoftwareManager

svn at pcbsd.org svn at pcbsd.org
Thu Dec 17 13:28:14 PST 2009


Author: kris
Date: 2009-12-17 13:28:14 -0800 (Thu, 17 Dec 2009)
New Revision: 5649

Modified:
   pcbsd/trunk/SoftwareManager/softmanager-pbiupdate.cpp
Log:

Give option to cancel a download in right-click menu of Software Manager



Modified: pcbsd/trunk/SoftwareManager/softmanager-pbiupdate.cpp
===================================================================
--- pcbsd/trunk/SoftwareManager/softmanager-pbiupdate.cpp	2009-12-17 16:19:08 UTC (rev 5648)
+++ pcbsd/trunk/SoftwareManager/softmanager-pbiupdate.cpp	2009-12-17 21:28:14 UTC (rev 5649)
@@ -650,6 +650,11 @@
 
            popup->exec( QCursor::pos() );
          } else {
+           // If this is a new download, offer cancel option
+           if ( item->isNewDownload() ) {
+             popup->addAction( tr("Cancel Download"), this, SLOT(RemoveButtonSlot()));
+             popup->exec( QCursor::pos() );
+           }
            // If the item failed to download, let us re-start it here
            if ( item->getDownloadFailed() ) {
              popup->addAction( tr("Retry Download"), this, SLOT(slotRetryPBIDownload()));



More information about the Commits mailing list