Skip to content

Commit

Permalink
Don't lookup address and name when editing server properties.
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Karlsson authored and dotarmin committed Jun 25, 2020
1 parent a6e2036 commit dd77f65
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Widgets/DeviceDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ void DeviceDialog::nameChanged(QString name)

bool DeviceDialog::lookupName(const QString& name)
{
if (this->editMode)
return true;

if (name.isEmpty())
return false;

Expand All @@ -199,6 +202,9 @@ void DeviceDialog::addressChanged(QString name)

bool DeviceDialog::lookupAddress(const QString& address)
{
if (this->editMode)
return true;

if (address.isEmpty())
return false;

Expand Down

0 comments on commit dd77f65

Please sign in to comment.