mirror of
https://github.com/Lurkki14/tuxclocker.git
synced 2024-11-21 15:57:25 -06:00
add error message when can't connect to daemon
This commit is contained in:
parent
7be571a94f
commit
232cb70378
@ -51,6 +51,10 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) {
|
||||
auto conn = QDBusConnection::systemBus();
|
||||
QDBusInterface tuxclockerd("org.tuxclocker", "/", "org.tuxclocker", conn);
|
||||
|
||||
if (tuxclockerd.lastError().isValid())
|
||||
qDebug() << "Couldn't connect to TuxClocker daemon:"
|
||||
<< tuxclockerd.lastError().message();
|
||||
|
||||
QDBusReply<QVector<TCDBus::FlatTreeNode<TCDBus::DeviceNode>>> reply =
|
||||
tuxclockerd.call("flatDeviceTree");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user