Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLipu Fei <lipu.fei815@gmail.com>2017-05-04 15:32:32 +0300
committerLipu Fei <lipu.fei815@gmail.com>2017-05-04 15:33:19 +0300
commitf06562bc6e37352ed6064f10a17474a7fa1d5aa4 (patch)
tree9514e8cd8933d5d2a66422af110f197a523c0b52 /cura/CrashHandler.py
parentfe112d5d81f82d89859387494e33c7e742486204 (diff)
Remove kitten image and related text from CrashDialog
Diffstat (limited to 'cura/CrashHandler.py')
-rw-r--r--cura/CrashHandler.py37
1 files changed, 17 insertions, 20 deletions
diff --git a/cura/CrashHandler.py b/cura/CrashHandler.py
index b658f88824..4048b409a7 100644
--- a/cura/CrashHandler.py
+++ b/cura/CrashHandler.py
@@ -48,35 +48,32 @@ def show(exception_type, value, tb):
dialog = QDialog()
dialog.setMinimumWidth(640)
dialog.setMinimumHeight(640)
- dialog.setWindowTitle(catalog.i18nc("@title:window", "Oops!"))
+ dialog.setWindowTitle(catalog.i18nc("@title:window", "Crash Report"))
layout = QVBoxLayout(dialog)
- label = QLabel(dialog)
- pixmap = QPixmap()
-
- try:
- data = urllib.request.urlopen("http://www.randomkittengenerator.com/cats/rotator.php").read()
- pixmap.loadFromData(data)
- except:
- try:
- from UM.Resources import Resources
- path = Resources.getPath(Resources.Images, "kitten.jpg")
- pixmap.load(path)
- except:
- pass
-
- pixmap = pixmap.scaled(150, 150)
- label.setPixmap(pixmap)
- label.setAlignment(Qt.AlignCenter)
- layout.addWidget(label)
+ #label = QLabel(dialog)
+ #pixmap = QPixmap()
+ #try:
+ # data = urllib.request.urlopen("http://www.randomkittengenerator.com/cats/rotator.php").read()
+ # pixmap.loadFromData(data)
+ #except:
+ # try:
+ # from UM.Resources import Resources
+ # path = Resources.getPath(Resources.Images, "kitten.jpg")
+ # pixmap.load(path)
+ # except:
+ # pass
+ #pixmap = pixmap.scaled(150, 150)
+ #label.setPixmap(pixmap)
+ #label.setAlignment(Qt.AlignCenter)
+ #layout.addWidget(label)
label = QLabel(dialog)
layout.addWidget(label)
#label.setScaledContents(True)
label.setText(catalog.i18nc("@label", """<p>A fatal exception has occurred that we could not recover from!</p>
- <p>We hope this picture of a kitten helps you recover from the shock.</p>
<p>Please use the information below to post a bug report at <a href=\"http://github.com/Ultimaker/Cura/issues\">http://github.com/Ultimaker/Cura/issues</a></p>
"""))