Skip to content

Commit

Permalink
Dialogs/Device/PortMonitor: allow reconnect while "occupied"
Browse files Browse the repository at this point in the history
Only disallow reconnect when the device is borrowed.

Same as commit 3c7650e but for the PortMonitor dialog.
  • Loading branch information
MaxKellermann committed Jun 2, 2021
1 parent b809bc8 commit 0d6f2bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Dialogs/Device/PortMonitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ PortMonitorWidget::CreateButtons(WidgetDialog &dialog)
void
PortMonitorWidget::Reconnect()
{
if (device.IsOccupied()) {
if (device.IsBorrowed()) {
ShowMessageBox(_("Device is occupied"), _("Reconnect"),
MB_OK | MB_ICONERROR);
return;
Expand Down

0 comments on commit 0d6f2bc

Please sign in to comment.