mirror of
https://github.com/arcan1s/netctl-gui.git
synced 2025-07-10 04:15:52 +00:00
add dynamic settings load
fix setTray() function
This commit is contained in:
@ -78,10 +78,8 @@ Netctl::~Netctl()
|
||||
{
|
||||
if (debug) qDebug() << "[Netctl]" << "[~Netctl]";
|
||||
|
||||
if (netctlProfile != 0)
|
||||
delete netctlProfile;
|
||||
if (ifaceDirectory != 0)
|
||||
delete ifaceDirectory;
|
||||
if (netctlProfile != nullptr) delete netctlProfile;
|
||||
if (ifaceDirectory != nullptr) delete ifaceDirectory;
|
||||
}
|
||||
|
||||
|
||||
|
@ -59,8 +59,7 @@ NetctlProfile::~NetctlProfile()
|
||||
{
|
||||
if (debug) qDebug() << "[NetctlProfile]" << "[~NetctlProfile]";
|
||||
|
||||
if (profileDirectory != 0)
|
||||
delete profileDirectory;
|
||||
if (profileDirectory != nullptr) delete profileDirectory;
|
||||
}
|
||||
|
||||
|
||||
|
@ -79,10 +79,8 @@ WpaSup::~WpaSup()
|
||||
{
|
||||
if (debug) qDebug() << "[WpaSup]" << "[~WpaSup]";
|
||||
|
||||
if (netctlCommand != 0)
|
||||
delete netctlCommand;
|
||||
if (netctlProfile != 0)
|
||||
delete netctlProfile;
|
||||
if (netctlCommand != nullptr) delete netctlCommand;
|
||||
if (netctlProfile != nullptr) delete netctlProfile;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user