[gnome-latex: 140/205] Save a "New document" open the dialog to save as



commit cf794c4776906d0b3209ee46333d6dc02258a975
Author: Sébastien Wilmet <sebastien wilmet gmail com>
Date:   Thu Dec 17 00:04:01 2009 +0100

    Save a "New document" open the dialog to save as

 TODO            | 7 -------
 src/callbacks.c | 2 +-
 2 files changed, 1 insertion(+), 8 deletions(-)
---
diff --git a/TODO b/TODO
index 6068410..13b35b6 100644
--- a/TODO
+++ b/TODO
@@ -1,11 +1,5 @@
 TODO LaTeXila
 
-[x] Templates
-       x create a few default templates
-       x on the action "new file", possibility to select a template
-       x possibility to create new templates
-       x possibility to delete templates (not the defaults)
-
 [-] BibTeX support
 
 [-] toolbars: possibility to put the edit toolbar on the right of the first toolbar instead of bottom
@@ -23,5 +17,4 @@ TODO LaTeXila
 [-] replace the notebook in the side pane by a combo box with a close button
 
 [-] bug correction
-       - if new document, save must save as
        - when there are too much recent documents, new documents are not visible in File/Open Recent
diff --git a/src/callbacks.c b/src/callbacks.c
index ac49dbf..34e904e 100644
--- a/src/callbacks.c
+++ b/src/callbacks.c
@@ -100,7 +100,7 @@ cb_save (void)
        if (latexila.active_doc == NULL)
                return;
 
-       if (! latexila.active_doc->saved)
+       if (! latexila.active_doc->saved || latexila.active_doc->path == NULL)
        {
                if (latexila.active_doc->path == NULL)
                        save_as_dialog ();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]