Skip to content

Commit f260c8f

Browse files
authored
Update pgRoutingLayer.py
Change based on: #39 (comment)
1 parent 2ec5ae0 commit f260c8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pgRoutingLayer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1204,7 +1204,7 @@ def findNearestLink(self, args, pt):
12041204

12051205
def loadSettings(self):
12061206
settings = QSettings()
1207-
idx = self.dock.comboConnections.findText(settings.value('/pgRoutingLayer/Database', type=str))
1207+
idx = self.dock.comboConnections.findText(Utils.getStringValue(settings, '/pgRoutingLayer/Database', ''))
12081208
if idx >= 0:
12091209
self.dock.comboConnections.setCurrentIndex(idx)
12101210
idx = self.dock.comboBoxFunction.findText(Utils.getStringValue(settings, '/pgRoutingLayer/Function', 'dijkstra'))

0 commit comments

Comments
 (0)