diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2020-05-26 21:39:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-26 21:39:07 +0200 |
commit | 9daee31ba991cb7306d316fcbe4dcab27c022be8 (patch) | |
tree | 4f7508e516683897b2979d923a5c70fc80a148a2 | |
parent | 24ad4894ccf38a904f4bc931ffd4c1d63d382dcc (diff) | |
parent | ef1a305e50331611db628a25ca777ffe824d37f3 (diff) |
Merge pull request #39070 from bruvzg/win7_ignore_empty_tab_driver
Ignore invalid tablet driver name, when non are available.
-rw-r--r-- | platform/windows/os_windows.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp index f11888b26c..0dab0c601a 100644 --- a/platform/windows/os_windows.cpp +++ b/platform/windows/os_windows.cpp @@ -795,6 +795,9 @@ String OS_Windows::get_current_tablet_driver() const { } void OS_Windows::set_current_tablet_driver(const String &p_driver) { + if (get_tablet_driver_count() == 0) { + return; + } bool found = false; for (int i = 0; i < get_tablet_driver_count(); i++) { if (p_driver == get_tablet_driver_name(i)) { |