Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
6b1a98cd
Commit
6b1a98cd
authored
Jan 07, 2010
by
Erik Verbruggen
Browse files
Fixed too eager asserts: thrown exceptions are expected and handled in the TextToModelMerger.
parent
a196317c
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmldesigner/qmldesignerplugin.cpp
View file @
6b1a98cd
...
...
@@ -27,6 +27,7 @@
**
**************************************************************************/
#include "exception.h"
#include "qmldesignerplugin.h"
#include "designmode.h"
#include "qmldesignerconstants.h"
...
...
@@ -53,6 +54,16 @@ namespace Internal {
BauhausPlugin
::
BauhausPlugin
()
:
m_designerCore
(
0
)
{
// Exceptions should never ever assert: they are handled in a number of
// places where it is actually VALID AND EXPECTED BEHAVIOUR to get an
// exception.
// If you still want to see exactly where the exception originally
// occurred, then you have various ways to do this:
// 1. set a breakpoint on the constructor of the exception
// 2. in gdb: "catch throw" or "catch throw Exception"
// 3. set a breakpoint on __raise_exception()
// And with gdb, you can even do this from your ~/.gdbinit file.
Exception
::
setShouldAssert
(
false
);
}
BauhausPlugin
::~
BauhausPlugin
()
...
...
src/shared/qml/metatype/exception.cpp
View file @
6b1a98cd
...
...
@@ -71,7 +71,7 @@ const char* demangle(const char* name)
#endif
bool
Exception
::
s_shouldAssert
=
tru
e
;
bool
Exception
::
s_shouldAssert
=
fals
e
;
void
Exception
::
setShouldAssert
(
bool
assert
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment