Skip to content

Commit

Permalink
[FIX] Fix Roam crash on exit
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Oct 12, 2017
1 parent 9cbb95d commit 44a3316
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 5 additions & 2 deletions src/roam/api/interface.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
class RoamInterface(object):
def __init__(self, events, gps, mainwindow, mapwindow):
from PyQt4.QtCore import QObject

class RoamInterface(QObject):
def __init__(self, events, gps, mainwindow, mapwindow, parent):
super(RoamInterface, self).__init__(parent)
self.events = events
self.gps = gps
self.mapwindow = mapwindow
Expand Down
3 changes: 1 addition & 2 deletions src/roam/mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def createSpacer(width=0, height=0):

self.currentselection = {}

iface = RoamInterface(RoamEvents, GPS, self, self.canvas_page)
iface = RoamInterface(RoamEvents, GPS, self, self.canvas_page, self)
plugins.api = iface

def delete_feature(self, form, feature):
Expand Down Expand Up @@ -462,7 +462,6 @@ def exit(self):
"""
Exit the application.
"""
self.projectupdater.quit()
self.close()

def showInfoResults(self, results):
Expand Down

0 comments on commit 44a3316

Please sign in to comment.