X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=blobdiff_plain;f=radiant%2Fmain.cpp;h=a1e39bad6833d61b74e83b43d745e3d612fb4655;hp=b66728a5a3de951bdf392cb590ab20bbd4705326;hb=509042502f58be20e84ccc3ba1f4487e20d4d3a6;hpb=95ac019c0063b6e281fe5eeefb7fe19b9b7be9b0 diff --git a/radiant/main.cpp b/radiant/main.cpp index b66728a5..a1e39bad 100644 --- a/radiant/main.cpp +++ b/radiant/main.cpp @@ -286,24 +286,22 @@ public: LineLimitedTextOutputStream outputStream(getOutputStream(), 24); write_stack_trace(outputStream); getOutputStream() << "----------------\n"; + globalErrorStream() << m_buffer.c_str(); if(!m_lock.locked()) { ScopedLock lock(m_lock); #if defined _DEBUG m_buffer << "Break into the debugger?\n"; - globalErrorStream() << m_buffer.c_str(); bool handled = gtk_MessageBox(0, m_buffer.c_str(), "Radiant - Runtime Error", eMB_YESNO, eMB_ICONERROR) == eIDNO; m_buffer.clear(); return handled; #else m_buffer << "Please report this error to the developers\n"; - globalErrorStream() << m_buffer.c_str(); gtk_MessageBox(0, m_buffer.c_str(), "Radiant - Runtime Error", eMB_OK, eMB_ICONERROR); m_buffer.clear(); - return true; #endif } - return false; + return true; } };