commit 4372f1b58f4b46d9823b70c488cacd8e86a9cd1b
Author: Richard Kimberly Heck <[email protected]>
Date: Sun Jun 9 21:02:24 2024 -0400
Brackets.
I read somewhere that comments after an if-statement without brackets
is dangerous.
---
src/frontends/qt/GuiView.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/frontends/qt/GuiView.cpp b/src/frontends/qt/GuiView.cpp
index 7be7626b8b..2d3e0a9108 100644
--- a/src/frontends/qt/GuiView.cpp
+++ b/src/frontends/qt/GuiView.cpp
@@ -1570,9 +1570,10 @@ void GuiView::updateWindowTitle(GuiWorkArea * wa)
void GuiView::on_currentWorkAreaChanged(GuiWorkArea * wa)
{
- if (d.current_work_area_)
+ if (d.current_work_area_) {
// disconnect the current work area from all slots
QObject::disconnect(d.current_work_area_, nullptr, this,
nullptr);
+ }
disconnectBuffer();
disconnectBufferView();
connectBufferView(wa->bufferView());
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs