Fix port reservation getting cleared incorrectly

This would happen when other port config properties were modified but
the reserve checkbox itself was not modified.

Fixes #317
This commit is contained in:
Srivats P 2020-10-23 13:21:02 +05:30
parent 43fe3964f9
commit 640e7029b9

View File

@ -87,6 +87,7 @@ void PortConfigDialog::accept()
else else
Q_ASSERT(false); // Unreachable!!! Q_ASSERT(false); // Unreachable!!!
pc.set_user_name(portConfig_.user_name());
switch (reservedBy_) { switch (reservedBy_) {
case kSelf: case kSelf:
if (!reserveButton->isChecked()) if (!reserveButton->isChecked())