diff --git a/src/calibre/gui2/__init__.py b/src/calibre/gui2/__init__.py index 8ee9ab09e2..74c319039d 100644 --- a/src/calibre/gui2/__init__.py +++ b/src/calibre/gui2/__init__.py @@ -254,7 +254,7 @@ if iswindows: def available_heights(): desktop = QCoreApplication.instance().desktop() - return map(lambda x: x.height(), map(desktop.availableGeometry, range(desktop.numScreens()))) + return map(lambda x: x.height(), map(desktop.availableGeometry, range(desktop.screenCount()))) def available_height(): desktop = QCoreApplication.instance().desktop()