[gnome-boxes/handle-unavailable-input-sources-3-34: 3/3] unattended-installer: check null keyboard
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/handle-unavailable-input-sources-3-34: 3/3] unattended-installer: check null keyboard
- Date: Mon, 2 Dec 2019 13:09:04 +0000 (UTC)
commit aa2eb4bcd2e18234fdbbdbd752469c12f0ef8501
Author: Isaque Galdino <igaldino gmail com>
Date: Wed Nov 27 17:31:32 2019 -0300
unattended-installer: check null keyboard
src/unattended-installer.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/unattended-installer.vala b/src/unattended-installer.vala
index 075c5778..6471c177 100644
--- a/src/unattended-installer.vala
+++ b/src/unattended-installer.vala
@@ -691,7 +691,7 @@ private string get_preferred_keyboard (string lang) {
}
}
- if (datamap.reverse_lookup (kbd_layout) != null) {
+ if (kbd_layout != null && datamap.reverse_lookup (kbd_layout) != null) {
return kbd_layout;
}
} catch (GLib.Error error) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]