mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 02:28:35 +00:00
Fix warning
This commit is contained in:
parent
e5958e3ca8
commit
bdd7e26b3e
@ -292,7 +292,7 @@ GuiSearch::GuiSearch(GuiView & parent, Qt::DockWidgetArea area, Qt::WindowFlags
|
||||
|
||||
void GuiSearch::onBufferViewChanged()
|
||||
{
|
||||
widget_->setEnabled((bool)bufferview());
|
||||
widget_->setEnabled(static_cast<bool>(bufferview()));
|
||||
widget_->setBufferView(bufferview());
|
||||
}
|
||||
|
||||
|
@ -420,14 +420,14 @@ GuiViewSource::GuiViewSource(GuiView & parent,
|
||||
void GuiViewSource::onBufferViewChanged()
|
||||
{
|
||||
widget_->setText();
|
||||
widget_->setEnabled((bool)bufferview());
|
||||
widget_->setEnabled(static_cast<bool>(bufferview()));
|
||||
}
|
||||
|
||||
|
||||
void GuiViewSource::updateView()
|
||||
{
|
||||
if (widget_->autoUpdateCB->isChecked()) {
|
||||
widget_->setEnabled((bool)bufferview());
|
||||
widget_->setEnabled(static_cast<bool>(bufferview()));
|
||||
scheduleUpdate();
|
||||
}
|
||||
widget_->masterPerspectiveCB->setEnabled(buffer().parent());
|
||||
@ -437,7 +437,7 @@ void GuiViewSource::updateView()
|
||||
|
||||
void GuiViewSource::enableView(bool enable)
|
||||
{
|
||||
widget_->setEnabled((bool)bufferview());
|
||||
widget_->setEnabled(static_cast<bool>(bufferview()));
|
||||
if (bufferview())
|
||||
widget_->updateDefaultFormat(*bufferview());
|
||||
if (!enable)
|
||||
|
Loading…
Reference in New Issue
Block a user