Merge branch 'mjog/fix-composer-undhandled-error-build-warning' into 'mainline'
Fix unhandled error build warning See merge request GNOME/geary!358
This commit is contained in:
commit
35007aa006
2 changed files with 10 additions and 4 deletions
|
|
@ -2094,8 +2094,9 @@ public class Application.Controller : Geary.BaseObject {
|
|||
try {
|
||||
full = yield context.emails.fetch_email_async(
|
||||
referred.id,
|
||||
Geary.ComposedEmail.REQUIRED_REPLY_FIELDS,
|
||||
Geary.Folder.ListFlags.NONE,
|
||||
Geary.ComposedEmail.REQUIRED_REPLY_FIELDS |
|
||||
ComposerWidget.REQUIRED_FIELDS,
|
||||
NONE,
|
||||
cancellable
|
||||
);
|
||||
} catch (Error e) {
|
||||
|
|
@ -2103,7 +2104,11 @@ public class Application.Controller : Geary.BaseObject {
|
|||
}
|
||||
}
|
||||
}
|
||||
yield widget.load(full, quote, cancellable);
|
||||
try {
|
||||
yield widget.load(full, quote, cancellable);
|
||||
} catch (GLib.Error err) {
|
||||
report_problem(new Geary.ProblemReport(err));
|
||||
}
|
||||
widget.set_focus();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -623,7 +623,8 @@ public class ComposerWidget : Gtk.EventBox, Geary.BaseInterface {
|
|||
*/
|
||||
public async void load(Geary.Email? referred = null,
|
||||
string? quote = null,
|
||||
GLib.Cancellable? cancellable) {
|
||||
GLib.Cancellable? cancellable)
|
||||
throws GLib.Error {
|
||||
if (referred != null &&
|
||||
!referred.fields.is_all_set(REQUIRED_FIELDS)) {
|
||||
throw new Geary.EngineError.INCOMPLETE_MESSAGE(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue