mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-15 12:23:15 +00:00
FontEditor: Check complete mime type on paste_glyphs()
This commit is contained in:
parent
9b431bc2ab
commit
fe6b36507f
|
@ -1045,7 +1045,7 @@ ErrorOr<void> MainWidget::cut_selected_glyphs()
|
|||
void MainWidget::paste_glyphs()
|
||||
{
|
||||
auto [data, mime_type, metadata] = GUI::Clipboard::the().fetch_data_and_type();
|
||||
if (!mime_type.starts_with("glyph/"sv))
|
||||
if (!mime_type.starts_with("glyph/x-fonteditor"sv))
|
||||
return;
|
||||
|
||||
auto glyph_count = metadata.get("count").value().to_uint().value_or(0);
|
||||
|
|
Loading…
Reference in a new issue