diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-09-28 00:21:23 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-09-28 00:21:23 +0200 |
commit | 90c13efab1fd1b67625ec23815ccc195803e230e (patch) | |
tree | 3bb0c28e8be756df9344a95dbd888450bb694113 /src/SearchBar.cpp | |
parent | b3fb1615038e821fb9abf60788ccdead04dd005a (diff) |
Matrix: fix login with pantalaimon proxy, fix logout crash, show real login error
Diffstat (limited to 'src/SearchBar.cpp')
-rw-r--r-- | src/SearchBar.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/SearchBar.cpp b/src/SearchBar.cpp index e646546..419ca38 100644 --- a/src/SearchBar.cpp +++ b/src/SearchBar.cpp @@ -161,8 +161,12 @@ namespace QuickMedia { } } else if(codepoint == 13) { // Return bool clear_search = true; - if(onTextSubmitCallback) - clear_search = onTextSubmitCallback(show_placeholder ? "" : text.getString()); + if(onTextSubmitCallback) { + if(show_placeholder) + clear_search = onTextSubmitCallback(""); + else + clear_search = onTextSubmitCallback(text.getString()); + } if(clear_search) clear(); |