Skip to content

Commit

Permalink
Fix import error and plugin load widget error
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Jul 19, 2015
1 parent 1b30b8d commit 414a53a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/roam/api/featureform.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
QFormLayout,
QSpinBox,
QDoubleSpinBox)
from matplotlib.sphinxext.plot_directive import out_of_date

from qgis.core import QgsFields, QgsFeature, QgsGPSConnectionRegistry, QGis, QgsGeometry, QgsPoint
from qgis.gui import QgsMessageBar
Expand Down
7 changes: 6 additions & 1 deletion src/roam/mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,10 @@ def _readProject(self, doc):
self.projectOpened()
GPS.crs = crs

@property
def enabled_plugins(self):
return self.settings.get('plugins', [])

@roam.utils.timeit
def projectOpened(self):
"""
Expand Down Expand Up @@ -669,7 +673,8 @@ def clear_plugins(self):
# Remove the page widget, because we make it on each load
widget = self.stackedWidget.widget(action.property("page"))
self.stackedWidget.removeWidget(widget)
widget.deleteLater()
if widget:
widget.deleteLater()

self.menutoolbar.removeAction(action)
self.pluginactions = []
Expand Down

0 comments on commit 414a53a

Please sign in to comment.