Add missing changes to fix build

This commit is contained in:
Cameron Gutman
2021-07-02 23:54:17 -05:00
parent fa3f822cf1
commit 043c55ae66
3 changed files with 102 additions and 1 deletions

View File

@@ -593,7 +593,7 @@ void ComputerManager::stopPollingAsync()
void ComputerManager::addNewHostManually(QString address)
{
QUrl url = QUrl::fromUserInput(address);
if (!url.isEmpty() && url.isValid()) {
if (url.isValid() && !url.host().isEmpty()) {
// If there wasn't a port specified, use the default
addNewHost(NvAddress(url.host(), url.port(47989)), false);
}