[gnote] Do not close main window on escape
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Do not close main window on escape
- Date: Sat, 21 Dec 2013 22:20:31 +0000 (UTC)
commit 0362abe90eaa7580105262ca9c13778cf41ef64c
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sun Dec 22 00:06:36 2013 +0200
Do not close main window on escape
src/recentchanges.cpp | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/recentchanges.cpp b/src/recentchanges.cpp
index 324cb66..77a09da 100644
--- a/src/recentchanges.cpp
+++ b/src/recentchanges.cpp
@@ -380,8 +380,7 @@ namespace gnote {
m_search_button.set_active(false);
}
// Allow Escape to close the window
- else if(close_on_escape()
- || &m_search_notes_widget == dynamic_cast<SearchNotesWidget*>(currently_embedded())) {
+ else if(close_on_escape()) {
close_window();
}
else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]