mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-17 16:11:12 +02:00
2020-12-09 Fred Gleason <fredg@paravelsystems.com>
* Added a deprecation warning for the 'Allow Duplicate Cart Titles' and 'Auto-Correct Duplicate Cart Titles' checkboxes on the 'System-Wide Settings' dialog in rdadmin(1) as well as the Operations Guide. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -283,6 +283,16 @@ QSizePolicy EditSystem::sizePolicy() const
|
||||
|
||||
void EditSystem::duplicatesCheckedData(bool state)
|
||||
{
|
||||
if((!state)&&edit_system->allowDuplicateCartTitles()) {
|
||||
if(QMessageBox::warning(this,"RDAdmin - "+tr("Deprecation Warning"),
|
||||
tr("The ability to disallow duplicate cart titles in Rivendell <strong>has been deprecated</strong> and may be removed from future versions; it is included strictly to keep existing setups working. Use of it can cause other features within Rivendell to operate unreliably. It should never be used in new Rivendell setups!")+"<p>"+
|
||||
tr("Attempt to disallow duplicate cart titles anyway?"),
|
||||
QMessageBox::No,QMessageBox::Yes)!=QMessageBox::Yes) {
|
||||
edit_duplicate_carts_box->setChecked(true);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
edit_fix_duplicate_carts_box->setDisabled(state);
|
||||
edit_fix_duplicate_carts_label->setDisabled(state);
|
||||
}
|
||||
|
Reference in New Issue
Block a user