Skip to content

Commit

Permalink
Fix loading of a next sample for Slicer3D (#1500)
Browse files Browse the repository at this point in the history
Next Sample was not loading as MONAILabel extension was not stripping
`\n` character from extracted URL. This caused the URL to be invalid.

Signed-off-by: Martin Brisiak <[email protected]>
Co-authored-by: Martin Brisiak <[email protected]>
  • Loading branch information
MartinBrisiak and Martin Brisiak authored Jul 26, 2023
1 parent b95e498 commit 1d03472
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/slicer/MONAILabel/MONAILabel.py
Original file line number Diff line number Diff line change
Expand Up @@ -1028,7 +1028,7 @@ def updateServerSettings(self):
self.saveServerUrl()

def serverUrl(self):
serverUrl = self.ui.serverComboBox.currentText
serverUrl = self.ui.serverComboBox.currentText.strip()
if not serverUrl:
serverUrl = "http://127.0.0.1:8000"
return serverUrl.rstrip("/")
Expand Down

0 comments on commit 1d03472

Please sign in to comment.