Skip to content

Commit

Permalink
fix regression when converted to qwidget
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennesky committed Mar 16, 2012
1 parent 9e30687 commit 47c6611
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions loopvisiblelayers.py
Expand Up @@ -58,6 +58,7 @@ def initGui(self):
self.dockWidget.setObjectName('Loop Visible Layers')
self.dockWidget.setWidget(self.loopWidget)
QObject.connect(self.dockWidget, SIGNAL('topLevelChanged ( bool )'), self.resizeDock)
QObject.connect(self.dockWidget, SIGNAL('visibilityChanged ( bool )'), self.loopWidget.onVisibilityChanged)
self.iface.addDockWidget(Qt.LeftDockWidgetArea, self.dockWidget)

def showHideDock(self):
Expand Down
3 changes: 1 addition & 2 deletions loopvisiblelayerswidget.py
Expand Up @@ -78,7 +78,6 @@ def __init__(self, iface):
QObject.connect(self.btnForward, SIGNAL('clicked()'), self.actionForward)
QObject.connect(self.btnBack, SIGNAL('clicked()'), self.actionBack)
QObject.connect(self.btnStop, SIGNAL('clicked()'), self.actionStop)
QObject.connect(self, SIGNAL('visibilityChanged ( bool )'), self.onVisibilityChanged)

# signals mapped to checkGroupsChanged (btnRefresh, layers changed)
#QObject.connect( self.btnRefresh, SIGNAL( 'clicked()' ), self.checkGroupsChanged )
Expand Down Expand Up @@ -154,7 +153,7 @@ def actionStart(self):
self.checkGroupsChanged()
QtGui.QMessageBox.warning(self, 'Warning', 'Loop Visible Layers Plugin \n\nSelection has been updated, verify and start again')
return

# save visible layers
self.bakLayerIds = list()
for layer in self.iface.mapCanvas().layers():
Expand Down
2 changes: 1 addition & 1 deletion ui_loopvisiblelayerswidget.py
Expand Up @@ -2,7 +2,7 @@

# Form implementation generated from reading ui file 'ui_loopvisiblelayerswidget.ui'
#
# Created: Fri Mar 16 18:58:04 2012
# Created: Fri Mar 16 20:25:42 2012
# by: PyQt4 UI code generator 4.8.5
#
# WARNING! All changes made in this file will be lost!
Expand Down

0 comments on commit 47c6611

Please sign in to comment.