[gnote] Fix dragging notes to Unfiled notes



commit 9b730d5c5e7cb2aa28a13ce33cbbd7b5b379d123
Author: Aurimas Äernius <aurisc4 gmail com>
Date:   Tue Jul 26 21:24:14 2011 +0300

    Fix dragging notes to Unfiled notes
    
    When dragging notes to Unfiled notes, the note view is not updated.
    Fixes bug 655208.

 src/recentchanges.cpp |    6 +++---
 src/recentchanges.hpp |    2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/recentchanges.cpp b/src/recentchanges.cpp
index ce5df00..ad65b6c 100644
--- a/src/recentchanges.cpp
+++ b/src/recentchanges.cpp
@@ -219,8 +219,8 @@ namespace gnote {
     // until the note's queue_save () kicks in.
     notebooks::NotebookManager::instance().signal_note_added_to_notebook()
       .connect(sigc::mem_fun(*this, &NoteRecentChanges::on_note_added_to_notebook));
-    notebooks::NotebookManager::instance().signal_note_added_to_notebook()
-      .connect(sigc::mem_fun(*this, &NoteRecentChanges::on_note_removed_to_notebook));
+    notebooks::NotebookManager::instance().signal_note_removed_from_notebook()
+      .connect(sigc::mem_fun(*this, &NoteRecentChanges::on_note_removed_from_notebook));
                         
     Gnote::obj().signal_quit.connect(sigc::mem_fun(*this, &NoteRecentChanges::on_exiting_event));
 
@@ -1526,7 +1526,7 @@ namespace gnote {
     update_results ();
   }
     
-  void NoteRecentChanges::on_note_removed_to_notebook (const Note & , 
+  void NoteRecentChanges::on_note_removed_from_notebook (const Note & , 
                                                        const notebooks::Notebook::Ptr & )
   {
     update_results ();
diff --git a/src/recentchanges.hpp b/src/recentchanges.hpp
index 0e0d1e5..2a71638 100644
--- a/src/recentchanges.hpp
+++ b/src/recentchanges.hpp
@@ -134,7 +134,7 @@ private:
   bool on_notebooks_tree_button_pressed(GdkEventButton *);
   bool on_notebooks_key_pressed(GdkEventKey *);
   void on_note_added_to_notebook (const Note & note, const notebooks::Notebook::Ptr & notebook);
-  void on_note_removed_to_notebook (const Note & note, const notebooks::Notebook::Ptr & notebook);
+  void on_note_removed_from_notebook (const Note & note, const notebooks::Notebook::Ptr & notebook);
   std::string get_search_text();
   void save_position ();
   void restore_position();



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