mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
added few titles to dialogs
This commit is contained in:
parent
4648e14581
commit
179328fbe7
1 changed files with 3 additions and 0 deletions
|
|
@ -289,6 +289,7 @@ class SettingsCategoryWidget(QtWidgets.QWidget):
|
|||
msg = "<br><br>".join(warnings)
|
||||
|
||||
dialog = QtWidgets.QMessageBox(self)
|
||||
dialog.setWindowTitle("Save warnings")
|
||||
dialog.setText(msg)
|
||||
dialog.setIcon(QtWidgets.QMessageBox.Warning)
|
||||
dialog.exec_()
|
||||
|
|
@ -298,6 +299,7 @@ class SettingsCategoryWidget(QtWidgets.QWidget):
|
|||
except Exception as exc:
|
||||
formatted_traceback = traceback.format_exception(*sys.exc_info())
|
||||
dialog = QtWidgets.QMessageBox(self)
|
||||
dialog.setWindowTitle("Unexpected error")
|
||||
msg = "Unexpected error happened!\n\nError: {}".format(str(exc))
|
||||
dialog.setText(msg)
|
||||
dialog.setDetailedText("\n".join(formatted_traceback))
|
||||
|
|
@ -387,6 +389,7 @@ class SettingsCategoryWidget(QtWidgets.QWidget):
|
|||
except Exception as exc:
|
||||
formatted_traceback = traceback.format_exception(*sys.exc_info())
|
||||
dialog = QtWidgets.QMessageBox(self)
|
||||
dialog.setWindowTitle("Unexpected error")
|
||||
msg = "Unexpected error happened!\n\nError: {}".format(str(exc))
|
||||
dialog.setText(msg)
|
||||
dialog.setDetailedText("\n".join(formatted_traceback))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue