Skip to content

Commit 934fc3f

Browse files
committed
Fix fragment item editable
1 parent 948feae commit 934fc3f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/Interface/Application/SCIRunMainWindow.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1446,6 +1446,7 @@ void SCIRunMainWindow::setupSubnetItem(QTreeWidgetItem* fave, bool addToMap, con
14461446
{
14471447
savedSubnetworksXml_[id] = fave->data(0, clipboardKey).toString();
14481448
savedSubnetworksNames_[id] = fave->text(0);
1449+
fave->setFlags(fave->flags() & !Qt::ItemIsEditable);
14491450
}
14501451
}
14511452

src/Interface/Modules/Python/InterfaceWithPythonDialog.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ void InterfaceWithPythonDialog::updateFromPortChange(int numPorts, const std::st
101101

102102
if (type == DynamicPortChange::USER_REMOVED_PORT)
103103
{
104+
//TODO: add checkbox for "don't show this again"
104105
QMessageBox::warning(this, "Warning: possible Python code update required", windowTitle() +
105106
": The connection to port " + QString::fromStdString(portId) + " was deleted. The variable name \"" +
106107
QString::fromStdString(state_->getValue(SCIRun::Core::Algorithms::Name(portId)).toString()) + "\" is no longer valid."

0 commit comments

Comments
 (0)