Skip to content

Commit

Permalink
fix loading process description when abstract is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
landam committed Jan 9, 2024
1 parent eba58b9 commit 1931a0f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion wps_plugin_dockwidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,13 @@ def onLoadProcessesResponse(self, response):
self.setCursor(Qt.ArrowCursor)

def showProcessesDescription(self, index):
self.textEditProcessDescription.setText("[" + self.processes[index].identifier + "]: " + self.processes[index].abstract)
desc = "[" + self.processes[index].identifier + "]: "
if self.processes[index].title:
desc += self.processes[index].title
if self.processes[index].abstract:
desc += "\n\n" + self.processes[index].abstract

self.textEditProcessDescription.setText(desc)

def processSelected(self, id):
current_index = int(id.split('|')[1])
Expand Down

0 comments on commit 1931a0f

Please sign in to comment.