mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Brackets.
I read somewhere that comments after an if-statement without brackets is dangerous.
This commit is contained in:
parent
8655c83a90
commit
4372f1b58f
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user