mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1892594 [[Enhancement] Remove unnecessary empty lines in No library found screen](https://bugs.launchpad.net/calibre/+bug/1892594)
This commit is contained in:
parent
836397603d
commit
fcdcf1bc84
@ -115,14 +115,14 @@ class MovedDialog(QDialog): # {{{
|
||||
self.header.setWordWrap(True)
|
||||
ncols = 2
|
||||
l.addWidget(self.header, 0, 0, 1, ncols)
|
||||
self.cl = QLabel('<br><b>'+_('New location of this library:'))
|
||||
l.addWidget(self.cl, 1, 0, 1, ncols)
|
||||
self.cl = QLabel('<b>'+_('New location of this library:'))
|
||||
l.addWidget(self.cl, l.rowCount(), 0, 1, ncols)
|
||||
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.setIcon(QIcon(I('document_open.png')))
|
||||
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)
|
||||
b = self.bb.addButton(_('Library moved'), self.bb.AcceptRole)
|
||||
b.setIcon(QIcon(I('ok.png')))
|
||||
@ -132,7 +132,7 @@ class MovedDialog(QDialog): # {{{
|
||||
self.bb.accepted.connect(self.accept)
|
||||
self.bb.rejected.connect(self.reject)
|
||||
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):
|
||||
d = choose_dir(self, 'library moved choose new loc',
|
||||
|
Loading…
x
Reference in New Issue
Block a user