mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJClient.git
synced 2026-03-28 05:25:39 +03:00
ref: some changes
* change hash process * add commands for version
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user