1. biolab
  2. Untitled project
  3. orange

Commits

Aleš Erjavec  committed ab6eaa6

Fixed the ask save changes dialog text.

  • Participants
  • Parent commits 0281bd5
  • Branches default

Comments (0)

Files changed (1)

File Orange/OrangeCanvas/application/canvasmain.py

View file
  • Ignore whitespace
 
         """
         document = self.current_document()
-
+        title = document.scheme().title or "untitled"
         selected = message_question(
             self.tr('Do you want to save the changes you made to scheme "%s"?')
-                    % document.scheme().title,
+                    % title,
             self.tr("Save Changes?"),
-            self.tr("If you do not save your changes will be lost"),
+            self.tr("Your changes will be lost if you do not save them."),
             buttons=QMessageBox.Save | QMessageBox.Cancel | \
                     QMessageBox.Discard,
             default_button=QMessageBox.Save,