|
@@ -366,8 +366,7 @@ void OBSAdvAudioCtrl::OBSSourceRenamed(void *param, calldata_t *calldata)
|
|
|
QString newName = QT_UTF8(calldata_string(calldata, "new_name"));
|
|
|
|
|
|
QMetaObject::invokeMethod(reinterpret_cast<OBSAdvAudioCtrl *>(param),
|
|
|
- "SetSourceName",
|
|
|
- Q_ARG(const QString &, newName));
|
|
|
+ "SetSourceName", Q_ARG(QString &, newName));
|
|
|
}
|
|
|
|
|
|
/* ------------------------------------------------------------------------- */
|
|
@@ -700,8 +699,7 @@ void OBSAdvAudioCtrl::SetIconVisible(bool visible)
|
|
|
visible ? iconLabel->show() : iconLabel->hide();
|
|
|
}
|
|
|
|
|
|
-void OBSAdvAudioCtrl::SetSourceName(const QString &newName)
|
|
|
+void OBSAdvAudioCtrl::SetSourceName(QString &newName)
|
|
|
{
|
|
|
- if (nameLabel->text() != newName)
|
|
|
- nameLabel->setText(newName);
|
|
|
+ TruncateLabel(nameLabel, newName);
|
|
|
}
|