Silence misleading exception print in setQtContextDelegate

As I understand it, the call to getDeclaredMethod seems to be just there
to check if a given method is declared under before adding it to the
delegates list, and that's why the getDeclaredMethod is not returning
anything, so we could treat it as a failed check and not print anything.

This is an amendment to 80f7494e8a9f9a70e3b53833a098d74d8c2331d9 which
added this print.

Pick-to: 6.1 5.15
Change-Id: I5f69ed5b4fa655da53ac7fba20d4e07acc75607a
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
This commit is contained in:
Assam Boudjelthia 2021-05-11 11:15:19 +03:00
parent 7134843793
commit eaac5bae98

View File

@ -102,9 +102,7 @@ public class QtApplication extends Application
}
}
}
} catch (Exception e) {
e.printStackTrace();
}
} catch (Exception e) { }
}
}