Commit c963f227 authored by Tomaz  Canabrava's avatar Tomaz Canabrava
Browse files

Fix crash while re-entering the firewall KCM

parent cfc21d99
......@@ -32,6 +32,12 @@ FirewallClient::FirewallClient(QObject *parent)
{
}
FirewallClient::~FirewallClient() noexcept
{
m_currentBackend->deleteLater();
m_currentBackend = nullptr;
}
QStringList FirewallClient::knownProtocols()
{
if (!m_currentBackend) {
......
......@@ -53,6 +53,8 @@ public:
enum DefaultDataBehavior { DontReadDefaults, ReadDefaults };
enum ProfilesBehavior { DontListenProfiles, ListenProfiles };
explicit FirewallClient(QObject *parent = nullptr);
~FirewallClient();
void setBackend(const QStringList &backendList);
Q_INVOKABLE static QStringList knownProtocols();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment