Brackets.

I read somewhere that comments after an if-statement without brackets
is dangerous.
This commit is contained in:
Richard Kimberly Heck 2024-06-09 21:02:24 -04:00
parent 8655c83a90
commit 4372f1b58f

View File

@ -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());