Peter Kümmel wrote:
Wouldn't it be better to catch an exception in main:
catch { QCoreApplication::exit(1) return 1; }
I only ask, because we had really strange cross-platform problems in
the past because of using exit
I did that (I committed it inadvertently together with r20530). It seems
to work fine.
Could someone on Mac report if there's any problem please? In order to
test it please apply this patch and try to insert a new inset in a new
document. In principle it should exit without crashing. Perhaps we
should warn the user that something bad happened.
Abdel.
Index: Inset.cpp
===================================================================
--- Inset.cpp (revision 20479)
+++ Inset.cpp (working copy)
@@ -124,6 +124,7 @@
Dimension const Inset::dimension(BufferView const & bv) const
{
+ throw 1;
return bv.coordCache().getInsets().dim(this);
}