diff options
author | Alexey Yakovenko <waker@users.sourceforge.net> | 2014-01-26 20:40:41 +0100 |
---|---|---|
committer | Alexey Yakovenko <waker@users.sourceforge.net> | 2014-01-26 20:40:41 +0100 |
commit | b636bc6b7fa449b2b443e902a86c4c364133572d (patch) | |
tree | 229c6ac698a2909fc3cabfe4d3765af469b3100e /plugins | |
parent | fb78b6089c84cd8281a4ed6281ba510ec17ea4f6 (diff) |
gtkui: prevent passing non-utf8 strings to gtk progress dialog
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/gtkui/progress.c | 3 |
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); } |