message: Check for DBus error properly in PowerManagement (linux)
diff: @@ -55,9 +55,10 @@ void PowerManagement::onPrepareForSleep(bool suspending) {
  void PowerManagement::getInhibitor() {
  auto reply = login1->call("Inhibit", "shutdown:sleep", "Toggl Track", "To stop the timer on shutdown or suspend", "delay");
  - qCritical() << reply << reply.errorMessage();
  + if (reply.type() != QDBusMessage::ErrorMessage) {
  inhibit = qvariant_cast<QDBusUnixFileDescriptor>(reply.arguments().at(0));
  }
  +}
  void PowerManagement::clearInhibitor() {
  inhibit = QDBusUnixFileDescriptor();
  