summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/aqpkg/networkpkgmgr.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/noncore/settings/aqpkg/networkpkgmgr.cpp b/noncore/settings/aqpkg/networkpkgmgr.cpp
index dee834e..ccce401 100644
--- a/noncore/settings/aqpkg/networkpkgmgr.cpp
+++ b/noncore/settings/aqpkg/networkpkgmgr.cpp
@@ -364,2 +364,3 @@ void NetworkPackageManager :: downloadPackage()
{
+ bool doUpdate = true;
if ( download->text() == "Download" )
@@ -422,2 +423,3 @@ void NetworkPackageManager :: downloadPackage()
{
+ doUpdate = false;
for ( QCheckListItem *item = (QCheckListItem *)packagesList->firstChild();
@@ -438,2 +440,9 @@ void NetworkPackageManager :: downloadPackage()
Package *p = dataMgr->getServer( serversList->currentText() )->getPackage( name );
+
+ QString msgtext;
+ msgtext.sprintf( "Are you sure you wish to delete\n%s?", (const char *)p->getPackageName() );
+ if ( QMessageBox::information( this, "Are you sure?",
+ msgtext, "No", "Yes" ) == 1 )
+ {
+ doUpdate = true;
QFile f( p->getFilename() );
@@ -443,3 +452,6 @@ void NetworkPackageManager :: downloadPackage()
}
+ }
+ if ( doUpdate )
+ {
dataMgr->reloadServerData();
@@ -447,2 +459,3 @@ void NetworkPackageManager :: downloadPackage()
}
+}