[gnote] Update notes list result when getting back
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Update notes list result when getting back
- Date: Sun, 11 Aug 2013 13:00:04 +0000 (UTC)
commit 8c3945f1a7075ba14d6d6bce7b662ac3f64d23c0
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sun Aug 11 15:56:58 2013 +0300
Update notes list result when getting back
This way search state is properly represented.
Fixes Bug 702149.
src/recentchanges.cpp | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/recentchanges.cpp b/src/recentchanges.cpp
index f751807..95ff6be 100644
--- a/src/recentchanges.cpp
+++ b/src/recentchanges.cpp
@@ -648,9 +648,7 @@ namespace gnote {
else {
m_find_next_prev_box.hide();
}
- if(m_search_button.get_active() && m_search_entry.get_text() != "") {
- searchable_item.perform_search(m_search_entry.get_text());
- }
+ searchable_item.perform_search(m_search_button.get_active() ? m_search_entry.get_text() : "");
}
catch(std::bad_cast &) {
m_search_button.set_active(false);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]