Skip to content
Snippets Groups Projects
Commit 94b72178 authored by Keith Butler's avatar Keith Butler
Browse files

Re #24256 get usagereport status from config dict

parent 6ab0b7cb
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,6 @@ from PyQt4 import QtGui # noqa
import mantid # noqa
from ErrorReporter import resources # noqa
from mantid.kernel import UsageService # noqa
from ErrorReporter.error_report_presenter import ErrorReporterPresenter # noqa
from ErrorReporter.errorreport import CrashReportPage # noqa
# Set path to look for package qt libraries
......@@ -31,8 +30,9 @@ if command_line_args.qtdir is not None:
)
def main():
if not UsageService.isEnabled():
if mantid.config['usagereports.enabled'] != '1':
return int(command_line_args.exit_code)
app = QtGui.QApplication(sys.argv)
form = CrashReportPage(show_continue_terminate=False)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment