Update the variable 'saved' to 'modified'.

pull/17/head
Christian Jacobs 2013-03-30 18:01:26 +00:00
rodzic a72fc67305
commit 88ee89b0e7
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -147,7 +147,7 @@ class Logbook(Gtk.Notebook):
logging.debug("No log files to close!")
return
if(not self.logs[current].saved):
if(self.logs[current].modified):
dialog = Gtk.MessageDialog(parent, Gtk.DialogFlags.DESTROY_WITH_PARENT,
Gtk.MessageType.QUESTION, Gtk.ButtonsType.YES_NO,
"Log %d is not saved. Are you sure you want to close it?" % current)