Issue #77 Break cyclic dependency between CDirectoryUtils and CNetworkUtils by factoring out canPing method

This commit is contained in:
Mat Sutcliffe
2020-11-09 00:39:12 +00:00
parent ac48e64891
commit b81cc9a9dc
7 changed files with 90 additions and 46 deletions

View File

@@ -1662,7 +1662,7 @@ namespace BlackMisc
for (const QString &m : uncMachines)
{
const bool ping = CNetworkUtils::canPing(m);
const bool ping = canPing(m);
if (!ping)
{
msgs.push_back(CStatusMessage(this).validationError(u"Cannot ping UNC machine(s): %1. UNC files: %2") << m << uncFiles.size());