mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2961 Make building of Windows menu robust when ODB is disabled
This commit is contained in:
parent
43fed5cf27
commit
c5e5f81e88
@ -142,9 +142,12 @@ QDockWidget* RiuDockWidgetTools::findDockWidget(const QObject* parent, const QSt
|
|||||||
QAction* RiuDockWidgetTools::toggleActionForWidget(const QObject* parent, const QString& dockWidgetName)
|
QAction* RiuDockWidgetTools::toggleActionForWidget(const QObject* parent, const QString& dockWidgetName)
|
||||||
{
|
{
|
||||||
auto w = RiuDockWidgetTools::findDockWidget(parent, dockWidgetName);
|
auto w = RiuDockWidgetTools::findDockWidget(parent, dockWidgetName);
|
||||||
CVF_ASSERT(w);
|
if (w)
|
||||||
|
{
|
||||||
|
return w->toggleViewAction();
|
||||||
|
}
|
||||||
|
|
||||||
return w->toggleViewAction();
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user