diff -r 10516539f238 -r 0a02c433f52d Helpviewer/Download/DownloadManager.py --- a/Helpviewer/Download/DownloadManager.py Fri Oct 18 23:00:41 2013 +0200 +++ b/Helpviewer/Download/DownloadManager.py Fri Nov 01 15:48:48 2013 +0100 @@ -82,22 +82,28 @@ row = self.downloadsView.selectionModel().selectedRows()[0].row() itm = self.__downloads[row] if itm.downloadCanceled(): - menu.addAction(UI.PixmapCache.getIcon("restart.png"), + menu.addAction( + UI.PixmapCache.getIcon("restart.png"), self.trUtf8("Retry"), self.__contextMenuRetry) else: if itm.downloadedSuccessfully(): - menu.addAction(UI.PixmapCache.getIcon("open.png"), + menu.addAction( + UI.PixmapCache.getIcon("open.png"), self.trUtf8("Open"), self.__contextMenuOpen) elif itm.downloading(): - menu.addAction(UI.PixmapCache.getIcon("stopLoading.png"), + menu.addAction( + UI.PixmapCache.getIcon("stopLoading.png"), self.trUtf8("Cancel"), self.__contextMenuCancel) menu.addSeparator() - menu.addAction(self.trUtf8("Open Containing Folder"), + menu.addAction( + self.trUtf8("Open Containing Folder"), self.__contextMenuOpenFolder) menu.addSeparator() - menu.addAction(self.trUtf8("Go to Download Page"), + menu.addAction( + self.trUtf8("Go to Download Page"), self.__contextMenuGotoPage) - menu.addAction(self.trUtf8("Copy Download Link"), + menu.addAction( + self.trUtf8("Copy Download Link"), self.__contextMenuCopyLink) menu.addSeparator() menu.addAction(self.trUtf8("Select All"), self.__contextMenuSelectAll) @@ -107,7 +113,8 @@ self.downloadsView.selectionModel().selectedRows()[0].row()]\ .downloading()): menu.addSeparator() - menu.addAction(self.trUtf8("Remove From List"), + menu.addAction( + self.trUtf8("Remove From List"), self.__contextMenuRemoveSelected) menu.exec_(QCursor.pos()) @@ -140,7 +147,8 @@ @return flag indicating allowance to quit (boolean) """ if self.activeDownloads() > 0: - res = E5MessageBox.yesNo(self, + res = E5MessageBox.yesNo( + self, self.trUtf8(""), self.trUtf8("""There are %n downloads in progress.\n""" """Do you want to quit anyway?""", "", @@ -164,7 +172,8 @@ request = QNetworkRequest(requestOrUrl) if request.url().isEmpty(): return - self.handleUnsupportedContent(self.__manager.get(request), + self.handleUnsupportedContent( + self.__manager.get(request), requestFileName=requestFileName, download=True, mainWindow=mainWindow) @@ -252,7 +261,8 @@ itm.setIcon(icon) oldHeight = self.downloadsView.rowHeight(row) - self.downloadsView.setRowHeight(row, + self.downloadsView.setRowHeight( + row, max(oldHeight, itm.minimumSizeHint().height() * 1.5)) remove = False