summaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/components')
-rw-r--r--src/components/chatinput.cpp5
-rw-r--r--src/components/chatmessage.cpp3
2 files changed, 2 insertions, 6 deletions
diff --git a/src/components/chatinput.cpp b/src/components/chatinput.cpp
index 1133302..24fc22b 100644
--- a/src/components/chatinput.cpp
+++ b/src/components/chatinput.cpp
@@ -149,11 +149,6 @@ void ChatInputTextContainer::ShowFileChooser() {
}
});
- auto filter_all = Gtk::FileFilter::create();
- filter_all->set_name("All files (*.*)");
- filter_all->add_pattern("*.*");
- dlg->add_filter(filter_all);
-
dlg->run();
}
diff --git a/src/components/chatmessage.cpp b/src/components/chatmessage.cpp
index 23ee36f..d1d9f72 100644
--- a/src/components/chatmessage.cpp
+++ b/src/components/chatmessage.cpp
@@ -204,7 +204,8 @@ void ChatMessageItemContainer::UpdateTextComponent(Gtk::TextView *tv) {
if (data->Application.has_value()) {
static const auto regex = Glib::Regex::create(R"(</(.*?):(\d+)>)");
Glib::MatchInfo match;
- if (regex->match(data->Content, match)) {
+ Glib::ustring string = data->Content;
+ if (regex->match(string, match)) {
const auto cmd = match.fetch(1);
const auto app = data->Application->Name;
b->insert_markup(s, "<i>used <span color='#697ec4'>" + cmd + "</span> with " + app + "</i>");