mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-03-10 05:34:36 +00:00
Fixed a crash under Qt on Export to HTML.
This commit is contained in:
parent
56fd94e205
commit
235d3ae521
@ -260,12 +260,7 @@ class ResultWindow(QMainWindow):
|
|||||||
self.app.show_details()
|
self.app.show_details()
|
||||||
|
|
||||||
def exportTriggered(self):
|
def exportTriggered(self):
|
||||||
h = self.resultsView.horizontalHeader()
|
exported_path = self.app.model.export_to_xhtml()
|
||||||
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)
|
|
||||||
url = QUrl.fromLocalFile(exported_path)
|
url = QUrl.fromLocalFile(exported_path)
|
||||||
QDesktopServices.openUrl(url)
|
QDesktopServices.openUrl(url)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user