[PC-BSD Commits] r6262 - pcbsd/trunk/SoftwareManager
svn at pcbsd.org
svn at pcbsd.org
Tue Feb 16 10:54:50 PST 2010
Author: kris
Date: 2010-02-16 10:54:50 -0800 (Tue, 16 Feb 2010)
New Revision: 6262
Modified:
pcbsd/trunk/SoftwareManager/softmanager-webview.cpp
Log:
Added warning when overwriting an existing PBI
Modified: pcbsd/trunk/SoftwareManager/softmanager-webview.cpp
===================================================================
--- pcbsd/trunk/SoftwareManager/softmanager-webview.cpp 2010-02-16 18:39:13 UTC (rev 6261)
+++ pcbsd/trunk/SoftwareManager/softmanager-webview.cpp 2010-02-16 18:54:50 UTC (rev 6262)
@@ -212,6 +212,8 @@
void PBM::slotPBIWebLinkClicked( const QUrl &url)
{
+ QString replaceStr;
+
//QMessageBox::critical( 0, tr("Update Manager"), url.toString(), QMessageBox::Ok );
@@ -245,7 +247,11 @@
// Show the URL we are working on
qDebug() << PBIUrl;
- switch( QMessageBox::warning( this, tr("Install Software?"), tr("Do you want to install") + " " + name + " " + version + "?", tr("OK"), tr("Cancel"), 0, 0, 1 ) ) {
+ // Add extra warning that we are replacing existing PBI
+ if ( checkPBILoaded(name))
+ replaceStr = " (" + tr("Will replace existing version") + ")";
+
+ switch( QMessageBox::warning( this, tr("Install Software?"), tr("Do you want to install") + " " + name + " " + version + "?" + replaceStr, tr("OK"), tr("Cancel"), 0, 0, 1 ) ) {
case 0: // The user clicked the OK again button or pressed Enter
// Schedule this PBI for download
scheduleNewPBIDownload(name, version, pbiurl, mirror);
More information about the Commits
mailing list