From d9ddcd0eb7608321eb2b94ad427868948ea627c2 Mon Sep 17 00:00:00 2001 From: andyq Date: Mon, 21 Oct 2002 15:52:50 +0000 Subject: If no packages selected and Apply button pushed, displays message - Nothing to do' and doesn't display Install dialog --- (limited to 'noncore') diff --git a/noncore/settings/aqpkg/networkpkgmgr.cpp b/noncore/settings/aqpkg/networkpkgmgr.cpp index d84fb4b..9acaaf1 100644 --- a/noncore/settings/aqpkg/networkpkgmgr.cpp +++ b/noncore/settings/aqpkg/networkpkgmgr.cpp @@ -430,6 +430,15 @@ void NetworkPackageManager :: applyChanges() } } + if ( workingPackages.size() == 0 ) + { + // Nothing to do + QMessageBox::information( this, "Nothing to do", + "No packages selected", "OK" ); + + return; + } + // do the stuff InstallDlgImpl dlg( workingPackages, dataMgr, this, "Install", true ); dlg.showDlg(); -- cgit v0.9.0.2