[gnote/tabbed: 2/19] Remove old position restore




commit 19abcb384a68196d71ec81946e9e61ffca3bb079
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Sun Oct 17 17:33:37 2021 +0300

    Remove old position restore

 src/recentchanges.cpp | 12 ------------
 1 file changed, 12 deletions(-)
---
diff --git a/src/recentchanges.cpp b/src/recentchanges.cpp
index 5f5c7558..07d8e9e8 100644
--- a/src/recentchanges.cpp
+++ b/src/recentchanges.cpp
@@ -606,19 +606,7 @@ namespace gnote {
   {
     // Select "All Notes" in the notebooks list
     m_search_notes_widget->select_all_notes_notebook();
-
-    int current_page = m_embed_book.get_current_page();
-    EmbeddableWidget *widget = current_page >= 0 ? 
dynamic_cast<EmbeddableWidget*>(m_embed_book.get_nth_page(current_page)) : nullptr;
-
     MainWindow::on_show();
-
-    if(widget) {
-      int x = 0, y = 0;
-      widget->hint_position(x, y);
-      if(x && y) {
-        move(x, y);
-      }
-    }
   }
 
   void NoteRecentChanges::set_search_text(const Glib::ustring & value)


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