From b67834ce312d2f0f59683a222270c1191a3ad9eb Mon Sep 17 00:00:00 2001 From: Thomas Perl Date: Tue, 17 Feb 2015 10:02:21 +0100 Subject: [PATCH] [unregister] Reset domain if vendor config has value --- libssu/ssu.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libssu/ssu.cpp b/libssu/ssu.cpp index 9a58f43..8cbb16b 100644 --- a/libssu/ssu.cpp +++ b/libssu/ssu.cpp @@ -663,6 +663,8 @@ void Ssu::unregister(){ settings->setValue("privateKey", ""); settings->setValue("certificate", ""); settings->setValue("registered", false); + if (settings->contains("default-sales-domain")) + setDomain(settings->value("default-sales-domain").toString()); settings->sync(); emit registrationStatusChanged(); }