Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Firewall
Commits
c963f227
Commit
c963f227
authored
Jan 25, 2021
by
Tomaz Canabrava
Browse files
Fix crash while re-entering the firewall KCM
parent
cfc21d99
Changes
2
Hide whitespace changes
Inline
Side-by-side
kcm/core/firewallclient.cpp
View file @
c963f227
...
...
@@ -32,6 +32,12 @@ FirewallClient::FirewallClient(QObject *parent)
{
}
FirewallClient
::~
FirewallClient
()
noexcept
{
m_currentBackend
->
deleteLater
();
m_currentBackend
=
nullptr
;
}
QStringList
FirewallClient
::
knownProtocols
()
{
if
(
!
m_currentBackend
)
{
...
...
kcm/core/firewallclient.h
View file @
c963f227
...
...
@@ -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
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment