ref: some changes

* change hash process
* add commands for version
This commit is contained in:
semenov
2025-01-16 11:19:41 +03:00
parent 65a0dca9bf
commit e1c3fcae36
15 changed files with 487 additions and 209 deletions

View File

@@ -67,15 +67,7 @@ void VersionSelectWidget::sendCopyEmit(QString newName)
return;
}
quint16 matchIndex = ui->verListView->findItems(newName,Qt::MatchFlag::MatchFixedString).length();
if (matchIndex > 0)
{
sigSendNotify(tr("Версия с таким именем уже существует"));
return;
}
versionContainer->setLocalVersionData(selectedVersion);
//versionContainer->setLocalVersionData(selectedVersion);
emit sigSendCopyVersion(result);
}
@@ -87,17 +79,6 @@ void VersionSelectWidget::on_DeleteVersionButton_clicked()
return;
}
// if (selectedVersion->getViewName() == baseNamePackage)
// {
// showWarning(tr("Нельзя удалить базовый пакет"));
// return;
// }
// if (selectedVersion->getViewName() == versionContainer->getServerVersion())
// {
// showWarning(tr("Нельзя удалить активную версию"));
// return;
// }
emit sigSendDeleteVersion(selectedVersion);
}