Modify DBus interface name
This commit is contained in:
parent
943a02d3e9
commit
5e00e727b6
2 changed files with 5 additions and 3 deletions
|
@ -35,8 +35,7 @@ int main(int argc, char *argv[])
|
|||
QApplication app(argc, argv);
|
||||
|
||||
if (!QDBusConnection::sessionBus().registerService("org.cutefish.Dock")) {
|
||||
app.exit();
|
||||
return 0;
|
||||
return -1;
|
||||
}
|
||||
|
||||
qmlRegisterType<DockSettings>("Cutefish.Dock", 1, 0, "DockSettings");
|
||||
|
@ -54,5 +53,9 @@ int main(int argc, char *argv[])
|
|||
|
||||
MainWindow w;
|
||||
|
||||
if (!QDBusConnection::sessionBus().registerObject("/Dock", &w)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
return app.exec();
|
||||
}
|
||||
|
|
|
@ -46,7 +46,6 @@ MainWindow::MainWindow(QQuickView *parent)
|
|||
, m_hideTimer(new QTimer(this))
|
||||
{
|
||||
new DockAdaptor(this);
|
||||
QDBusConnection::sessionBus().registerObject(QStringLiteral("/Dock"), this);
|
||||
|
||||
setDefaultAlphaBuffer(false);
|
||||
setColor(Qt::transparent);
|
||||
|
|
Loading…
Reference in a new issue