[gnote/tabbed: 11/19] Ignore close on escape when destroying note
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote/tabbed: 11/19] Ignore close on escape when destroying note
- Date: Tue, 2 Nov 2021 14:34:34 +0000 (UTC)
commit 0d3fde32f29f0cfbbf90d8d008d5b4b3f4f8374b
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sun Oct 24 17:33:14 2021 +0300
Ignore close on escape when destroying note
src/note.cpp | 5 -----
1 file changed, 5 deletions(-)
---
diff --git a/src/note.cpp b/src/note.cpp
index b014af49..9d9a7a06 100644
--- a/src/note.cpp
+++ b/src/note.cpp
@@ -315,12 +315,7 @@ namespace gnote {
if (m_window) {
if(m_window->host()) {
- MainWindow *win = dynamic_cast<MainWindow*>(m_window->host());
- bool close_host = win ? win->close_on_escape() : false;
m_window->host()->unembed_widget(*m_window);
- if(close_host) {
- win->close_window();
- }
}
delete m_window;
m_window = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]