Skip to content

Commit

Permalink
Reset cursor to arrow when exception occurs.
Browse files Browse the repository at this point in the history
  • Loading branch information
hsorby committed May 23, 2024
1 parent 9e397c2 commit 13deb8d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mapclient/view/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,11 @@ def do_runtime_error(self, *a, **kw):
try:
return f(self, *a, **kw)
except ClientRuntimeError as e:
QtWidgets.QApplication.restoreOverrideCursor()
QtWidgets.QApplication.setOverrideCursor(QtCore.Qt.CursorShape.ArrowCursor)
logger.error('{0}: {1}'.format(e.title, e.description))
ErrorDialog(e.title, e.description, self).exec()
QtWidgets.QApplication.restoreOverrideCursor()

return do_runtime_error


Expand Down

0 comments on commit 13deb8d

Please sign in to comment.