Fix a garbage condition
authorRoy Marples <roy@marples.name>
Wed, 19 Nov 2014 19:20:23 +0000 (19:20 +0000)
committerRoy Marples <roy@marples.name>
Wed, 19 Nov 2014 19:20:23 +0000 (19:20 +0000)
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 false;
        case QMessageBox::Discard:
+               *cancel = true;
                return true;
        default:
                break;
                return true;
        default:
                break;