Skip to content

Commit

Permalink
Changes after review
Browse files Browse the repository at this point in the history
  • Loading branch information
IKhonakhbeeva committed Oct 14, 2021
1 parent 248ba48 commit 0f72825
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ QLayout *DevicesConfigurationWidget::initPort(const QString &robotModelName

if (mAutosaveMode) {
connect(comboBox, &QComboBox::currentTextChanged, this, [this](){
propagateChangesFromBox(static_cast<QComboBox *>(sender()));
propagateChangesFromBox(qobject_cast<QComboBox *>(sender()));
});
}

Expand Down Expand Up @@ -144,8 +144,8 @@ void DevicesConfigurationWidget::refresh()
{
mRefreshing = true;
for (QComboBox * const box : mConfigurers) {
const PortInfo port = box->property("port").value<PortInfo>();
const DeviceInfo device = currentConfiguration(mCurrentRobotId, port);
const PortInfo &port = box->property("port").value<PortInfo>();
const DeviceInfo &device = currentConfiguration(mCurrentRobotId, port);
if (device.isNull()) {
box->setCurrentIndex(0);
} else {
Expand Down

0 comments on commit 0f72825

Please sign in to comment.