Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[processing] Fix unexpected newlines showing in python command in his…
…tory dialog

(cherry-picked from 2cc9bc8)
  • Loading branch information
nyalldawson committed Jul 4, 2018
1 parent 0616784 commit b9bdbb6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/plugins/processing/gui/HistoryDialog.py
Expand Up @@ -33,7 +33,7 @@
from qgis.PyQt.QtWidgets import QAction, QPushButton, QDialogButtonBox, QStyle, QMessageBox, QFileDialog, QMenu, QTreeWidgetItem
from qgis.PyQt.QtGui import QIcon
from processing.gui import TestTools
from processing.core.ProcessingLog import ProcessingLog
from processing.core.ProcessingLog import ProcessingLog, LOG_SEPARATOR

pluginPath = os.path.split(os.path.dirname(__file__))[0]

Expand Down Expand Up @@ -125,7 +125,7 @@ def executeAlgorithm(self):
def changeText(self):
item = self.tree.currentItem()
if isinstance(item, TreeLogEntryItem):
self.text.setText(item.entry.text.replace('|', '\n'))
self.text.setText(item.entry.text.replace(LOG_SEPARATOR, '\n'))

def createTest(self):
item = self.tree.currentItem()
Expand All @@ -150,4 +150,4 @@ def __init__(self, entry, isAlg):
QTreeWidgetItem.__init__(self)
self.entry = entry
self.isAlg = isAlg
self.setText(0, '[' + entry.date + '] ' + entry.text.split('|')[0])
self.setText(0, '[' + entry.date + '] ' + entry.text.split(LOG_SEPARATOR)[0])

0 comments on commit b9bdbb6

Please sign in to comment.