mirror of
https://github.com/OPM/ResInsight.git
synced 2026-09-03 20:53:13 -05:00
#1401 Disable model change notification
This commit is contained in:
@@ -102,6 +102,8 @@ bool RicHelpCommandLineFeature::isCommandEnabled()
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
void RicHelpCommandLineFeature::onActionTriggered(bool isChecked)
|
void RicHelpCommandLineFeature::onActionTriggered(bool isChecked)
|
||||||
{
|
{
|
||||||
|
this->disableModelChangeContribution();
|
||||||
|
|
||||||
RiaApplication* app = RiaApplication::instance();
|
RiaApplication* app = RiaApplication::instance();
|
||||||
QString text = app->commandLineParameterHelp();
|
QString text = app->commandLineParameterHelp();
|
||||||
app->showFormattedTextInMessageBox(text);
|
app->showFormattedTextInMessageBox(text);
|
||||||
@@ -133,6 +135,8 @@ bool RicHelpOpenUsersGuideFeature::isCommandEnabled()
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
void RicHelpOpenUsersGuideFeature::onActionTriggered(bool isChecked)
|
void RicHelpOpenUsersGuideFeature::onActionTriggered(bool isChecked)
|
||||||
{
|
{
|
||||||
|
this->disableModelChangeContribution();
|
||||||
|
|
||||||
QString usersGuideUrl = "http://resinsight.org/docs/home";
|
QString usersGuideUrl = "http://resinsight.org/docs/home";
|
||||||
|
|
||||||
if (!QDesktopServices::openUrl(usersGuideUrl))
|
if (!QDesktopServices::openUrl(usersGuideUrl))
|
||||||
|
|||||||
@@ -53,6 +53,8 @@ bool RicViewZoomAllFeature::isCommandEnabled()
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
void RicViewZoomAllFeature::onActionTriggered(bool isChecked)
|
void RicViewZoomAllFeature::onActionTriggered(bool isChecked)
|
||||||
{
|
{
|
||||||
|
this->disableModelChangeContribution();
|
||||||
|
|
||||||
QWidget* topLevelWidget = RiaApplication::activeWindow();
|
QWidget* topLevelWidget = RiaApplication::activeWindow();
|
||||||
|
|
||||||
if (dynamic_cast<RiuMainWindow*>(topLevelWidget))
|
if (dynamic_cast<RiuMainWindow*>(topLevelWidget))
|
||||||
|
|||||||
Reference in New Issue
Block a user