aboutsummaryrefslogtreecommitdiff
path: root/src/QuickMedia.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-05-22 10:59:04 +0200
committerdec05eba <dec05eba@protonmail.com>2021-05-22 10:59:04 +0200
commit31b99befbe173508554cdd808c3947f45cc24ea3 (patch)
tree32c608cfe99e798ac06d35c311ef3066465bced9 /src/QuickMedia.cpp
parent58f8ddf56649a3342b500b8526f1cee2593b4562 (diff)
Temporary fix for crash when resizing (text is deallocated when hidden), fix text randomly getting glitched out
Diffstat (limited to 'src/QuickMedia.cpp')
-rw-r--r--src/QuickMedia.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index 4d20b24..8de42a8 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -49,7 +49,6 @@
#include <json/writer.h>
#include <X11/keysym.h>
#include <X11/extensions/Xrandr.h>
-#include <SFML/OpenGL.hpp>
#include <GL/glx.h>
static const sf::Color back_color(21, 25, 30);
@@ -4518,7 +4517,7 @@ namespace QuickMedia {
std::string str_to_append = selected_mention_item->get_description();
if(!str_to_append.empty())
str_to_append.erase(0, 1);
- str_to_append += ": ";
+ str_to_append += " ";
chat_input.replace(chat_input.get_caret_index() - mention.filter.getSize(), mention.filter.getSize(), sf::String::fromUtf8(str_to_append.begin(), str_to_append.end()));
mention.hide();
}