mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-11 17:13:47 +02:00
2022-07-27 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in rdadmin(1) that permitted immutable switcher endpoint names to be edited. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -64,8 +64,10 @@ ListEndpoints::ListEndpoints(RDMatrix *matrix,RDMatrix::Endpoint endpoint,
|
||||
list_type_label=new QLabel(list_table,this);
|
||||
list_type_label->setFont(labelFont());
|
||||
list_type_label->setGeometry(14,5,85,19);
|
||||
connect(list_list_view,SIGNAL(doubleClicked(const QModelIndex &)),
|
||||
this,SLOT(doubleClickedData(const QModelIndex &)));
|
||||
if(RDMatrix::endpointsAreEditable(list_matrix->type())) {
|
||||
connect(list_list_view,SIGNAL(doubleClicked(const QModelIndex &)),
|
||||
this,SLOT(doubleClickedData(const QModelIndex &)));
|
||||
}
|
||||
connect(list_list_model,SIGNAL(modelReset()),
|
||||
list_list_view,SLOT(resizeColumnsToContents()));
|
||||
list_list_view->resizeColumnsToContents();
|
||||
@@ -77,7 +79,8 @@ ListEndpoints::ListEndpoints(RDMatrix *matrix,RDMatrix::Endpoint endpoint,
|
||||
list_edit_button->setFont(buttonFont());
|
||||
list_edit_button->setText(tr("Edit"));
|
||||
connect(list_edit_button,SIGNAL(clicked()),this,SLOT(editData()));
|
||||
list_edit_button->setDisabled(list_readonly);
|
||||
list_edit_button->
|
||||
setEnabled(RDMatrix::endpointsAreEditable(list_matrix->type()));
|
||||
|
||||
//
|
||||
// Cancel Button
|
||||
|
@@ -56,7 +56,7 @@ class ListEndpoints : public RDDialog
|
||||
QPushButton *list_close_button;
|
||||
int list_size;
|
||||
QString list_table;
|
||||
bool list_readonly;
|
||||
// bool list_readonly;
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user