# File lib/json/editor.rb, line 1088
1088:       def ask_save
1089:         if Editor.question_dialog(self,
1090:           "Unsaved changes to JSON model. Save?")
1091:           if @filename
1092:             file_save
1093:           else
1094:             file_save_as
1095:           end
1096:         end
1097:       end