def _download(self): selected = self.files_widget.selectedIndexes()[0].row() file_status = self.files_status[selected] picked, _ = QtWidgets.QFileDialog.getSaveFileName( self, "Pick destination", QtCore.QDir.currentPath() + '/' + file_status.name) if picked: record_usage(file_download=True) handle_error(self, reprounzip.download( self.directory, file_status.name, picked, unpacker=self.unpacker, root=self.root)) self._file_changed()
def _download(self): selected = self.files_widget.selectedIndexes()[0].row() file_status = self.files_status[selected] picked = QtGui.QFileDialog.getSaveFileName( self, "Pick destination", QtCore.QDir.currentPath() + '/' + file_status.name) if picked: handle_error( self, reprounzip.download(self.directory, file_status.name, picked, unpacker=self.unpacker, root=self.root)) self._file_changed()