X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSalomeApp%2FSalomeApp_DoubleSpinBox.cxx;h=9bdda7525743fd458d2b7a8d1ffc8637f7723a7f;hb=1c6902702083f5f05f7cad582c59445c089b9086;hp=eb9b2c957485d70c9f71e3ea583cafc2f96836ce;hpb=68aee8800d95437a7b8ab577fad288e0d0640613;p=modules%2Fgui.git diff --git a/src/SalomeApp/SalomeApp_DoubleSpinBox.cxx b/src/SalomeApp/SalomeApp_DoubleSpinBox.cxx index eb9b2c957..9bdda7525 100644 --- a/src/SalomeApp/SalomeApp_DoubleSpinBox.cxx +++ b/src/SalomeApp/SalomeApp_DoubleSpinBox.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -23,7 +23,6 @@ #ifndef DISABLE_PYCONSOLE #include // this include must be first (see PyInterp_base.h)! - #include #endif #include "SalomeApp_DoubleSpinBox.h" @@ -438,9 +437,8 @@ SalomeApp_DoubleSpinBox::SearchState SalomeApp_DoubleSpinBox::findVariable( cons if( studyDS->IsString( aName ) ) { #ifndef DISABLE_PYCONSOLE - PyConsole_Console* pyConsole = app->pythonConsole(); - PyConsole_Interp* pyInterp = pyConsole->getInterp(); - PyLockWrapper aLock = pyInterp->GetLockWrapper(); + PyConsole_Interp* pyInterp = app->getPyInterp(); + PyLockWrapper aLock; // Acquire GIL std::string command; command = "import salome_notebook ; "; command += "salome_notebook.notebook.setAsReal(\""; @@ -508,7 +506,7 @@ bool SalomeApp_DoubleSpinBox::isAcceptNames() const */ void SalomeApp_DoubleSpinBox::setShowTipOnValidate( const bool flag ) { - myShowTip = myShowTip; + myShowTip = flag; } /*!