[gnote] Fix crash when multiple windows are used and notes are moved between them
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Fix crash when multiple windows are used and notes are moved between them
- Date: Thu, 20 May 2021 19:45:39 +0000 (UTC)
commit fe119fb2b456ff686ead9a71d0c43a787ad511d0
Author: Aurimas Černius <aurisc4 gmail com>
Date: Thu May 20 22:45:21 2021 +0300
Fix crash when multiple windows are used and notes are moved between them
src/recentchanges.cpp | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/src/recentchanges.cpp b/src/recentchanges.cpp
index a2dd2aaa..2af6ddd5 100644
--- a/src/recentchanges.cpp
+++ b/src/recentchanges.cpp
@@ -450,6 +450,11 @@ namespace gnote {
background_embedded(*widget);
}
}
+ for(auto embedded : m_embedded_widgets) {
+ if(embedded != m_search_notes_widget) {
+ embedded->unembed();
+ }
+ }
hide();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]