Skip to content
Permalink
Browse files

[processing] Fix unexpected newlines showing in python command in his…

…tory dialog

(cherry-picked from 2cc9bc8)
  • Loading branch information
nyalldawson committed Jul 2, 2018
1 parent 0616784 commit b9bdbb6f263281b6b11c13405ac6284e31457708
Showing with 3 additions and 3 deletions.
  1. +3 −3 python/plugins/processing/gui/HistoryDialog.py
@@ -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]

@@ -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()
@@ -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.
You can’t perform that action at this time.