mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
oops
This commit is contained in:
parent
551c86d6b4
commit
976cf43e42
@ -357,7 +357,10 @@ class BooksView(QTableView):
|
||||
# Resetting the model should resize rows (model is reset after search and sort operations)
|
||||
QObject.connect(self.model(), SIGNAL('modelReset()'), self.resizeRowsToContents)
|
||||
self.cw = str(QSettings().value(self.__class__.__name__ + ' column widths', QVariant('')).toString())
|
||||
self.cw = tuple(int(i) for i in self.cw.split(','))
|
||||
try:
|
||||
self.cw = tuple(int(i) for i in self.cw.split(','))
|
||||
except ValueError:
|
||||
self.cw = None
|
||||
|
||||
def write_settings(self):
|
||||
settings = QSettings()
|
||||
|
Loading…
x
Reference in New Issue
Block a user