mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3384 Add RiaApplication::enableDebugFeatures method that checks environment for RESINSIGHT_DEBUG
* Disable System tab of preferences if this is not enabled.
This commit is contained in:
@@ -99,6 +99,7 @@
|
||||
#include <QFileDialog>
|
||||
#include <QMdiSubWindow>
|
||||
#include <QMessageBox>
|
||||
#include <QProcessEnvironment>
|
||||
#include <QTreeView>
|
||||
|
||||
|
||||
@@ -1596,6 +1597,15 @@ void RiaApplication::saveWinGeoAndDockToolBarLayout()
|
||||
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RiaApplication::enableDevelopmentFeatures()
|
||||
{
|
||||
QString environmentVar = QProcessEnvironment::systemEnvironment().value("RESINSIGHT_DEVEL", QString("0"));
|
||||
return environmentVar.toInt() == 1;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user