Skip to content

Commit

Permalink
[BACKPORT] don't change cursor to hourglass for fTools that runs in
Browse files Browse the repository at this point in the history
separate thread
  • Loading branch information
alexbruy committed Dec 5, 2011
1 parent 3f423ec commit a5070d0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions python/plugins/fTools/tools/doMergeShapes.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ def accept( self ):
QMessageBox.warning( self, self.tr( "Delete error" ), self.tr( "Can't delete file %1" ).arg( outFileName ) )
return

QApplication.setOverrideCursor( QCursor( Qt.WaitCursor ) )
self.btnOk.setEnabled( False )

self.mergeThread = ShapeMergeThread( baseDir, self.inputFiles, self.outFileName, self.encoding )
Expand Down Expand Up @@ -168,7 +167,6 @@ def restoreGui( self ):
self.progressFeatures.setRange( 0, 100 )
self.progressFeatures.setValue( 0 )
self.progressFiles.setValue( 0 )
QApplication.restoreOverrideCursor()
QObject.connect( self.buttonBox, SIGNAL( "rejected()" ), self.reject )
self.btnClose.setText( self.tr( "Close" ) )
self.btnOk.setEnabled( True )
Expand Down
2 changes: 0 additions & 2 deletions python/plugins/fTools/tools/doSimplify.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ def selectOutputFile( self ):
def accept( self ):
vLayer = ftools_utils.getVectorLayerByName( self.cmbInputLayer.currentText() )

QApplication.setOverrideCursor( Qt.WaitCursor )
self.okButton.setEnabled( False )

if self.writeShapefileCheck.isChecked():
Expand Down Expand Up @@ -139,7 +138,6 @@ def stopProcessing( self ):

def restoreGui( self ):
self.progressBar.setValue( 0 )
QApplication.restoreOverrideCursor()
QObject.connect( self.buttonBox, SIGNAL( "rejected()" ), self.reject )
self.closeButton.setText( self.tr( "Close" ) )
self.okButton.setEnabled( True )
Expand Down

0 comments on commit a5070d0

Please sign in to comment.