Skip to content

Commit

Permalink
Fix Linux shutdown error
Browse files Browse the repository at this point in the history
  • Loading branch information
Hajin Jang committed Oct 23, 2023
1 parent 4bedae6 commit 14c9387
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/powernotify.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ bool PowerNotifyLinux::Unregister()
QDBusConnection dBusSystem = QDBusConnection::systemBus();
result = dBusSystem.disconnect("org.freedesktop.UPower", "/org/freedesktop/UPower/devices/DisplayDevice", "org.freedesktop.DBus.Properties", "PropertiesChanged", this, SLOT(BatteryInfoChanged(QString, QVariantMap, QStringList)));
for (int i = 0; i < m_LinePower.count(); i++)
result &= dBusSystem.connect("org.freedesktop.UPower", m_LinePower[i], "org.freedesktop.DBus.Properties", "PropertiesChanged", this, SLOT(ACLineInfoChanged(QString, QVariantMap, QStringList)));
result &= dBusSystem.disconnect("org.freedesktop.UPower", m_LinePower[i], "org.freedesktop.DBus.Properties", "PropertiesChanged", this, SLOT(ACLineInfoChanged(QString, QVariantMap, QStringList)));
if (result == false)
{
SystemHelper::SystemError(QString("[%1] Cannot unregister D-Bus System Bus").arg(SystemHelper::OSName()));
Expand Down

0 comments on commit 14c9387

Please sign in to comment.