mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +00:00
don't crash when building without baloo
show_information_panel is only created when building with baloo. only access it when built with baloo, otherwise always report the panel as off. this fixes a nullptr deref because action() would return a nullptr since show_information_panel isn't a thing in all build configurations (full disclosure: I can't reproduce the crash, nor did I build without baloo) BUG: 431730
This commit is contained in:
parent
33270dd442
commit
5ed12ed44a
|
@ -258,7 +258,11 @@ bool DolphinMainWindow::isFoldersPanelEnabled() const
|
|||
|
||||
bool DolphinMainWindow::isInformationPanelEnabled() const
|
||||
{
|
||||
#ifdef HAVE_BALOO
|
||||
return actionCollection()->action(QStringLiteral("show_information_panel"))->isChecked();
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
void DolphinMainWindow::openFiles(const QStringList& files, bool splitView)
|
||||
|
|
Loading…
Reference in a new issue