mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 08:28:25 +00:00
Get rid of a Qt-generated stderr message
The stderr message "Object::disconnect: Unexpected null parameter" often appeared when closing and opening buffers. GuiView::on_currentWorkAreaChanged should not pass a null pointer to Object::disconnect.
This commit is contained in:
parent
9d05ac5c91
commit
1451c7cf66
@ -1022,6 +1022,7 @@ void GuiView::updateWindowTitle(GuiWorkArea * wa)
|
|||||||
|
|
||||||
void GuiView::on_currentWorkAreaChanged(GuiWorkArea * wa)
|
void GuiView::on_currentWorkAreaChanged(GuiWorkArea * wa)
|
||||||
{
|
{
|
||||||
|
if (d.current_work_area_)
|
||||||
QObject::disconnect(d.current_work_area_, SIGNAL(busy(bool)),
|
QObject::disconnect(d.current_work_area_, SIGNAL(busy(bool)),
|
||||||
this, SLOT(setBusy(bool)));
|
this, SLOT(setBusy(bool)));
|
||||||
disconnectBuffer();
|
disconnectBuffer();
|
||||||
|
Loading…
Reference in New Issue
Block a user