Fix a garbage condition
[dhcpcd-ui] / src / dhcpcd-qt / dhcpcd-preferences.cpp
index cb01c1f165860d7ff64a56d34ed0f7b258b7d4fb..3d8b6dff3a42197a8f6b74312c72c8d789a8bd6d 100644 (file)
@@ -351,6 +351,7 @@ bool DhcpcdPreferences::writeConfig(bool *cancel)
                *cancel = true;
                return false;
        case QMessageBox::Discard:
+               *cancel = true;
                return true;
        default:
                break;