Fixed a crash under Qt on Export to HTML.

This commit is contained in:
Virgil Dupras 2012-01-16 11:52:51 -05:00
parent 56fd94e205
commit 235d3ae521
1 changed files with 1 additions and 6 deletions

View File

@ -260,12 +260,7 @@ class ResultWindow(QMainWindow):
self.app.show_details()
def exportTriggered(self):
h = self.resultsView.horizontalHeader()
column_ids = []
for i in range(len(self.app.model.COLUMNS)):
if not h.isSectionHidden(i):
column_ids.append(str(i))
exported_path = self.app.model.export_to_xhtml(column_ids)
exported_path = self.app.model.export_to_xhtml()
url = QUrl.fromLocalFile(exported_path)
QDesktopServices.openUrl(url)