Use python's webbrowser instead of Qt.openUrlExternally for opening urls

Qt.openUrlExternally crashes on Windows, but python webbrowser works. So
use that instead.

Fixes Asana issue 33694049548892
This commit is contained in:
Arjen Hiemstra 2015-06-16 16:18:52 +02:00
parent 15e66a7a18
commit 3c5096cebc
3 changed files with 20 additions and 2 deletions

15
cura/CuraActions.py Normal file
View file

@ -0,0 +1,15 @@
from PyQt5.QtCore import QObject, pyqtSignal, pyqtSlot, pyqtProperty
import webbrowser
class CuraActions(QObject):
def __init__(self, parent = None):
super().__init__(parent)
@pyqtSlot()
def openDocumentation(self):
webbrowser.open("http://ultimaker.com/en/support/software")
@pyqtSlot()
def openBugReportPage(self):
webbrowser.open("http://github.com/Ultimaker/Cura/issues")