Skip to content
Snippets Groups Projects
Commit 078351a4 authored by Lan Dam's avatar Lan Dam
Browse files

Fix channel preferences can't be deleted

parent 0a4ae318
No related branches found
No related tags found
1 merge request!160Fix channel preferences can't be deleted
No preview for this file type
......@@ -375,8 +375,9 @@ class ChannelPreferDialog(OneWindowAtATimeDialog):
(soh_list_name_item, data_type_combobox,
soh_list_item, clear_widget) = self.get_row(row_idx)
if soh_list_item.text().strip() != "":
msg = ("Are you sure you want to delete the SOH channel list of "
"row #%s?" % (row_idx + 1))
msg = ("Are you sure you want to delete the SOH channel list "
f"{soh_list_name_item.text()} at soh_list_name_item row "
f"#{row_idx + 1}?")
result = QtWidgets.QMessageBox.question(
self, "Confirmation", msg,
QtWidgets.QMessageBox.Yes | QtWidgets.QMessageBox.No)
......@@ -561,7 +562,6 @@ class ChannelPreferDialog(OneWindowAtATimeDialog):
self.parent.pref_soh_list = []
self.parent.pref_soh_list_name = ''
self.parent.pref_soh_list_data_type = 'Unknown'
return True
ret = trunc_add_db('ChannelPrefer', sql_list)
if ret is not True:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment