You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
auto text = QInputDialog::getText(this, tr("Rename subnet"), tr("Enter new subnet name:"), QLineEdit::Normal, savedSubnetworksNames_[toRename].toString(), &ok);
1444
+
if (ok && !text.isEmpty())
1445
+
{
1446
+
qDebug() << "new name:" << text;
1447
+
savedSubnetworksNames_[toRename] = text;
1448
+
auto tree = getSavedSubnetworksMenu(moduleSelectorTreeWidget_);
1449
+
for (int i = 0; i < tree->childCount(); ++i)
1450
+
{
1451
+
auto subnet = tree->child(i);
1452
+
if (toRename == subnet->data(0, Qt::UserRole).toString())
1453
+
{
1454
+
auto widget = moduleSelectorTreeWidget_->itemWidget(subnet, 0);
0 commit comments