mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #5997 (Unable to Edit custom meta data screen)
This commit is contained in:
parent
bf0fde48a7
commit
6ab5113196
@ -325,7 +325,7 @@ def populate_metadata_page(layout, db, book_id, bulk=False, two_column=False, pa
|
||||
# Avoid problems with multi-line widgets
|
||||
turnover_point = count_non_comment + 1000
|
||||
ans = []
|
||||
column = row = 0
|
||||
column = row = comments_row = 0
|
||||
for col in cols:
|
||||
dt = x[col]['datatype']
|
||||
if dt == 'comments':
|
||||
@ -337,11 +337,13 @@ def populate_metadata_page(layout, db, book_id, bulk=False, two_column=False, pa
|
||||
layout.addWidget(w.widgets[c], row, column)
|
||||
layout.addWidget(w.widgets[c+1], row, column+1)
|
||||
row += 1
|
||||
comments_row = max(comments_row, row)
|
||||
if row >= turnover_point:
|
||||
column += 2
|
||||
turnover_point = count_non_comment + 1000
|
||||
row = 0
|
||||
if not bulk: # Add the comments fields
|
||||
row = comments_row
|
||||
column = 0
|
||||
for col in cols:
|
||||
dt = x[col]['datatype']
|
||||
|
Loading…
x
Reference in New Issue
Block a user