diff options
Diffstat (limited to 'src/error_gui.cpp')
-rw-r--r-- | src/error_gui.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/error_gui.cpp b/src/error_gui.cpp index b054f8834..6c4c2e9c6 100644 --- a/src/error_gui.cpp +++ b/src/error_gui.cpp @@ -417,3 +417,13 @@ void ScheduleErrorMessage(ErrorList &datas) { _error_list.splice(_error_list.end(), datas); } + +/** + * Schedule an error. + * Note: This does not try to display the error now. This is useful if the window system is not yet running. + * @param data Error message data; cleared afterwards + */ +void ScheduleErrorMessage(const ErrorMessageData &data) +{ + _error_list.push_back(data); +} |