-rw-r--r-- | noncore/settings/aqpkg/networkpkgmgr.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
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 @@ -429,8 +429,17 @@ void NetworkPackageManager :: applyChanges() workingPackages.push_back( data ); } } + 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(); |