Skip to content

Commit c182e8a

Browse files
committedMar 20, 2013
[sextante] minor code cleaning
1 parent 0105a6f commit c182e8a

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed
 

‎python/plugins/sextante/core/GeoAlgorithm.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,9 @@ def __init__(self):
6464
self.provider = None
6565

6666
self.defineCharacteristics()
67-
67+
6868
def getCopy(self):
69+
'''returns a new instance of this algorithm, ready to be used for being executed'''
6970
newone = copy.copy(self)
7071
newone.parameters = copy.deepcopy(self.parameters)
7172
newone.outputs = copy.deepcopy(self.outputs)

‎python/plugins/sextante/gui/AlgorithmExecutionDialog.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,6 @@ def __init__(self, alg, mainWidget):
9797
self.verticalLayout.addWidget(self.tabWidget)
9898
self.logText = QTextEdit()
9999
self.logText.readOnly = True
100-
useThreads = SextanteConfig.getSetting(SextanteConfig.USE_THREADS)
101-
keepOpen = SextanteConfig.getSetting(SextanteConfig.KEEP_DIALOG_OPEN)
102-
#if useThreads or keepOpen:
103100
self.tabWidget.addTab(self.logText, "Log")
104101
self.webView = QtWebKit.QWebView()
105102
cssUrl = QtCore.QUrl(os.path.join(os.path.dirname(__file__), "help", "help.css"))

0 commit comments

Comments
 (0)
Please sign in to comment.