[gnote] Fix runtime warning



commit 0d49c47cc692659f848f2e92a09b9c0d4ea8482c
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Tue May 14 23:09:33 2013 +0300

    Fix runtime warning

 src/searchnoteswidget.cpp |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/searchnoteswidget.cpp b/src/searchnoteswidget.cpp
index 33fecb8..790226e 100644
--- a/src/searchnoteswidget.cpp
+++ b/src/searchnoteswidget.cpp
@@ -191,7 +191,9 @@ void SearchNotesWidget::perform_search()
 
     add_matches_column();
     m_store_filter->refilter();
-    m_tree->scroll_to_point(0, 0);
+    if(m_tree->get_realized()) {
+      m_tree->scroll_to_point(0, 0);
+    }
   }
 }
 


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