Remove debug print()

This commit is contained in:
Kovid Goyal 2021-12-24 20:58:28 +05:30
parent c36036f05f
commit 97934eb1b6
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -733,8 +733,7 @@ class CreateNewCustomColumn(object):
}
dialog = CreateCustomColumn(gui, self, lookup_name, gui.library_view.model().orig_headers,
freeze_key=freeze_key)
print(dialog.accepted, dialog.result())
if dialog.result() == QDialog.DialogCode.Accepted and self.cc_column_key != None:
if dialog.result() == QDialog.DialogCode.Accepted and self.cc_column_key is not None:
cc = self.custcols[lookup_name]
db.create_custom_column(
label=cc['label'],