Fix #1892594 [[Enhancement] Remove unnecessary empty lines in No library found screen](https://bugs.launchpad.net/calibre/+bug/1892594)

This commit is contained in:
Kovid Goyal 2020-08-23 07:52:03 +05:30
parent 836397603d
commit fcdcf1bc84
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -115,14 +115,14 @@ class MovedDialog(QDialog): # {{{
self.header.setWordWrap(True) self.header.setWordWrap(True)
ncols = 2 ncols = 2
l.addWidget(self.header, 0, 0, 1, ncols) l.addWidget(self.header, 0, 0, 1, ncols)
self.cl = QLabel('<br><b>'+_('New location of this library:')) self.cl = QLabel('<b>'+_('New location of this library:'))
l.addWidget(self.cl, 1, 0, 1, ncols) l.addWidget(self.cl, l.rowCount(), 0, 1, ncols)
self.loc = QLineEdit(loc, self) self.loc = QLineEdit(loc, self)
l.addWidget(self.loc, 2, 0, 1, 1) l.addWidget(self.loc, l.rowCount(), 0, 1, 1)
self.cd = QToolButton(self) self.cd = QToolButton(self)
self.cd.setIcon(QIcon(I('document_open.png'))) self.cd.setIcon(QIcon(I('document_open.png')))
self.cd.clicked.connect(self.choose_dir) self.cd.clicked.connect(self.choose_dir)
l.addWidget(self.cd, 2, 1, 1, 1) l.addWidget(self.cd, l.rowCount() - 1, 1, 1, 1)
self.bb = QDialogButtonBox(QDialogButtonBox.Abort) self.bb = QDialogButtonBox(QDialogButtonBox.Abort)
b = self.bb.addButton(_('Library moved'), self.bb.AcceptRole) b = self.bb.addButton(_('Library moved'), self.bb.AcceptRole)
b.setIcon(QIcon(I('ok.png'))) b.setIcon(QIcon(I('ok.png')))
@ -132,7 +132,7 @@ class MovedDialog(QDialog): # {{{
self.bb.accepted.connect(self.accept) self.bb.accepted.connect(self.accept)
self.bb.rejected.connect(self.reject) self.bb.rejected.connect(self.reject)
l.addWidget(self.bb, 3, 0, 1, ncols) l.addWidget(self.bb, 3, 0, 1, ncols)
self.resize(self.sizeHint() + QSize(100, 50)) self.resize(self.sizeHint() + QSize(120, 0))
def choose_dir(self): def choose_dir(self):
d = choose_dir(self, 'library moved choose new loc', d = choose_dir(self, 'library moved choose new loc',