mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Changed from a critical section to a mutex for error handling.
show_pending_errors() was being called over and over again from the GUI update system - somehow it managed to have a single thread in two places at once. Also tried recursive mutex, resulted in infinite dialogs until an out-of-memory crash. Also, minor conversion fix. git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@998 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -28,7 +28,7 @@ ScriptValueP ScriptValue::next() { throw Intern
|
||||
ScriptValueP ScriptValue::makeIterator(const ScriptValueP&) const { return delayError(_ERROR_2_("can't convert", typeName(), _TYPE_("collection"))); }
|
||||
int ScriptValue::itemCount() const { throw ScriptError(_ERROR_2_("can't convert", typeName(), _TYPE_("collection"))); }
|
||||
CompareWhat ScriptValue::compareAs(String& compare_str, void const*& compare_ptr) const {
|
||||
compare_str = (String)(*this);
|
||||
compare_str = toString();
|
||||
return COMPARE_AS_STRING;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user