Listen to announcedName changes from the kcm
This commit is contained in:
parent
d9e7f308c2
commit
ee7420c8a0
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue