Revision: 2899 http://geany.svn.sourceforge.net/geany/?rev=2899&view=rev Author: ntrel Date: 2008-08-19 11:45:07 +0000 (Tue, 19 Aug 2008)
Log Message: ----------- Don't warn about a missing file on disk more than once (otherwise somtimes it's too difficult to close the file before getting the prompt).
Modified Paths: -------------- trunk/ChangeLog trunk/src/document.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2008-08-19 11:20:09 UTC (rev 2898) +++ trunk/ChangeLog 2008-08-19 11:45:07 UTC (rev 2899) @@ -6,6 +6,10 @@ * src/interface.c, src/callbacks.c, src/callbacks.h, geany.glade: Don't disable 'Detect from file' indent type pref when 'Tabs and Spaces' is selected. + * src/document.c: + Don't warn about a missing file on disk more than once (otherwise + somtimes it's too difficult to close the file before getting the + prompt).
2008-08-18 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: trunk/src/document.c =================================================================== --- trunk/src/document.c 2008-08-19 11:20:09 UTC (rev 2898) +++ trunk/src/document.c 2008-08-19 11:45:07 UTC (rev 2899) @@ -2608,6 +2608,8 @@ { /* file is missing - set unsaved state */ document_set_text_changed(doc, TRUE); + /* don't prompt more than once */ + setptr(doc->real_path, NULL);
if (dialogs_show_question_full(NULL, GTK_STOCK_SAVE, GTK_STOCK_CANCEL, _("Try to resave the file?"),
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.