From ee7420c8a0a194c71e470b713d58be662f2278f9 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Sun, 21 Aug 2016 19:50:27 +0200 Subject: [PATCH] Listen to announcedName changes from the kcm --- kcm/kcm.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kcm/kcm.cpp b/kcm/kcm.cpp index 160a43312..63c6edc67 100644 --- a/kcm/kcm.cpp +++ b/kcm/kcm.cpp @@ -83,6 +83,10 @@ KdeConnectKcm::KdeConnectKcm(QWidget *parent, const QVariantList&) kcmUi->rename_label->setText(daemon->announcedName()); kcmUi->rename_edit->setText(daemon->announcedName()); + connect(daemon, SIGNAL(announcedNameChanged(QString)), + kcmUi->rename_edit, SLOT(setText(QString))); + connect(daemon, SIGNAL(announcedNameChanged(QString)), + kcmUi->rename_label, SLOT(setText(QString))); setRenameMode(false); setButtons(KCModule::Help | KCModule::NoAdditionalButton);