summaryrefslogtreecommitdiff
path: root/plugins/gtkui/progress.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2014-01-26 20:40:41 +0100
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2014-01-26 20:40:41 +0100
commitb636bc6b7fa449b2b443e902a86c4c364133572d (patch)
tree229c6ac698a2909fc3cabfe4d3765af469b3100e /plugins/gtkui/progress.c
parentfb78b6089c84cd8281a4ed6281ba510ec17ea4f6 (diff)
gtkui: prevent passing non-utf8 strings to gtk progress dialog
Diffstat (limited to 'plugins/gtkui/progress.c')
-rw-r--r--plugins/gtkui/progress.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/gtkui/progress.c b/plugins/gtkui/progress.c
index 80dbcf1d..1ba1db60 100644
--- a/plugins/gtkui/progress.c
+++ b/plugins/gtkui/progress.c
@@ -78,6 +78,9 @@ progress_destroy (void) {
void
progress_settext (const char *text) {
+ if (deadbeef->junk_detect_charset (text)) {
+ text = "...";
+ }
gtk_entry_set_text (GTK_ENTRY (progressitem), text);
}