[gnote] Make save() clear the need save flag



commit 1a4097cc24aa56291eb8e0790740865e43d076c3
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Sun May 3 19:54:16 2020 +0300

    Make save() clear the need save flag

 src/note.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/note.cpp b/src/note.cpp
index e2b97edd..6d68b7d8 100644
--- a/src/note.cpp
+++ b/src/note.cpp
@@ -350,6 +350,7 @@ namespace gnote {
     // e.g on forced quit when we call save for every note.
     if (!m_save_needed)
       return;
+    m_save_needed = false;
 
     DBG_OUT("Saving '%s'...", m_data.data().title().c_str());
 
@@ -446,7 +447,6 @@ namespace gnote {
   {
     try {
       save();
-      m_save_needed = false;
     }
     catch(const sharp::Exception &e) 
     {


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