Skip to content

Commit

Permalink
python console: another fix for pasting
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@15675 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Apr 5, 2011
1 parent 1b54e9d commit 45d5d87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/console.py
Expand Up @@ -275,7 +275,7 @@ def insertFromMimeData(self, source):
# with multi-line text also run the commands
for line in pasteList[:-1]:
self.insertPlainText(line)
self.runCommand(unicode(line))
self.runCommand(unicode(self.currentCommand()))
# last line: only paste the text, do not run it
self.insertPlainText(unicode(pasteList[-1]))

Expand Down

0 comments on commit 45d5d87

Please sign in to comment.