13
0

stop crash if an error message is generated before the style RC file is loaded

git-svn-id: svn://localhost/ardour2/branches/3.0@12248 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2012-05-10 22:45:56 +00:00
parent 4302649bd9
commit 877c3f37c4

View File

@ -565,10 +565,15 @@ UI::process_error_message (Transmitter::Channel chn, const char *str)
handle_fatal (str);
} else {
display_message (prefix, prefix_len, ptag, mtag, str);
if (!errors->is_visible() && chn != Transmitter::Info) {
show_errors ();
if (!ptag || !mtag) {
/* oops, message sent before we set up tags - don't crash */
cerr << prefix << str << endl;
} else {
display_message (prefix, prefix_len, ptag, mtag, str);
if (!errors->is_visible() && chn != Transmitter::Info) {
show_errors ();
}
}
}