Skip to content

Commit 160d9ae

Browse files
committed
Closes #1345
1 parent 7e4b620 commit 160d9ae

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/Interface/Modules/Python/InterfaceWithPythonDialog.cc

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ DEALINGS IN THE SOFTWARE.
3030
#include <Modules/Python/InterfaceWithPython.h>
3131
#include <Modules/Python/PythonObjectForwarder.h>
3232
#include <Core/Logging/Log.h>
33-
#include <boost/regex.hpp>
34-
#include <boost/lexical_cast.hpp>
3533

3634
using namespace SCIRun::Gui;
3735
using namespace SCIRun::Dataflow::Networks;
@@ -98,6 +96,14 @@ void InterfaceWithPythonDialog::updateFromPortChange(int numPorts, const std::st
9896
if (type == INITIAL_PORT_CONSTRUCTION)
9997
return;
10098

99+
if (type == USER_REMOVED_PORT)
100+
{
101+
QMessageBox::warning(this, "Warning: possible Python code update required", windowTitle() +
102+
": The connection to port " + QString::fromStdString(portId) + " was deleted. The variable name \"" +
103+
QString::fromStdString(state_->getValue(SCIRun::Core::Algorithms::Name(portId)).toString()) + "\" is no longer valid."
104+
+ " Please update your Python code to reflect this.");
105+
}
106+
101107
inputVariableNamesTableWidget_->blockSignals(true);
102108

103109
handleInputTableWidgetRowChange(portId, "Matrix", type);

0 commit comments

Comments
 (0)