Skip to content

Commit

Permalink
[processing] Fix unexpected newlines showing in python command in his…
Browse files Browse the repository at this point in the history
…tory dialog
  • Loading branch information
nyalldawson committed Jul 2, 2018
1 parent 1621402 commit 2cc9bc8
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.QtWidgets import QAction, QPushButton, QDialogButtonBox, QStyle, QMessageBox, QFileDialog, QMenu, QTreeWidgetItem
from qgis.PyQt.QtGui import QIcon from qgis.PyQt.QtGui import QIcon
from processing.gui import TestTools 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] pluginPath = os.path.split(os.path.dirname(__file__))[0]


Expand Down Expand Up @@ -125,7 +125,7 @@ def executeAlgorithm(self):
def changeText(self): def changeText(self):
item = self.tree.currentItem() item = self.tree.currentItem()
if isinstance(item, TreeLogEntryItem): 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): def createTest(self):
item = self.tree.currentItem() item = self.tree.currentItem()
Expand All @@ -150,4 +150,4 @@ def __init__(self, entry, isAlg):
QTreeWidgetItem.__init__(self) QTreeWidgetItem.__init__(self)
self.entry = entry self.entry = entry
self.isAlg = isAlg 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 2cc9bc8

Please sign in to comment.