mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +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)
|
void GuiView::on_currentWorkAreaChanged(GuiWorkArea * wa)
|
||||||
{
|
{
|
||||||
if (d.current_work_area_)
|
if (d.current_work_area_) {
|
||||||
// disconnect the current work area from all slots
|
// disconnect the current work area from all slots
|
||||||
QObject::disconnect(d.current_work_area_, nullptr, this, nullptr);
|
QObject::disconnect(d.current_work_area_, nullptr, this, nullptr);
|
||||||
|
}
|
||||||
disconnectBuffer();
|
disconnectBuffer();
|
||||||
disconnectBufferView();
|
disconnectBufferView();
|
||||||
connectBufferView(wa->bufferView());
|
connectBufferView(wa->bufferView());
|
||||||
|
Loading…
Reference in New Issue
Block a user