aboutsummaryrefslogtreecommitdiff
path: root/src/SearchBar.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-09-28 00:21:23 +0200
committerdec05eba <dec05eba@protonmail.com>2020-09-28 00:21:23 +0200
commit90c13efab1fd1b67625ec23815ccc195803e230e (patch)
tree3bb0c28e8be756df9344a95dbd888450bb694113 /src/SearchBar.cpp
parentb3fb1615038e821fb9abf60788ccdead04dd005a (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.cpp8
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();