Commit 85f0071f authored by Kai Willadsen's avatar Kai Willadsen

filediff: Fix our still-unused GtkSourceView error domain logic

parent da3ba746
......@@ -1154,8 +1154,8 @@ class FileDiff(MeldDoc, Component):
buf.end_not_undoable_action()
buf.end_user_action()
# TODO: Find sane error domain constants
if err.domain == 'gtk-source-file-loader-error':
if err.domain == GLib.quark_to_string(
GtkSource.FileLoaderError.quark()):
# TODO: Add custom reload-with-encoding handling for
# GtkSource.FileLoaderError.CONVERSION_FALLBACK and
# GtkSource.FileLoaderError.ENCODING_AUTO_DETECTION_FAILED
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment