Skip to content
Permalink
Browse files

backport ada0160

  • Loading branch information
tomkralidis committed Feb 26, 2015
1 parent 7997c35 commit e4c21259efcfddb23f280454d89f7f715e40d1ff
Showing with 13 additions and 1 deletion.
  1. +13 −1 python/plugins/MetaSearch/dialogs/maindialog.py
@@ -518,7 +518,13 @@ def record_clicked(self):
return

identifier = get_item_data(item, 'identifier')
record = self.catalog.records[identifier]
try:
record = self.catalog.records[identifier]
except KeyError, err:
QMessageBox.warning(self,
self.tr('Record parsing error'),
'Unable to locate record identifier')
return

# if the record has a bbox, show a footprint on the map
if record.bbox is not None:
@@ -734,6 +740,12 @@ def show_metadata(self):
QMessageBox.warning(self, self.tr('GetRecords error'),
self.tr('Error getting response: %s') % err)
return
except KeyError, err:
QMessageBox.warning(self,
self.tr('Record parsing error'),
'Unable to locate record identifier')
QApplication.restoreOverrideCursor()
return

QApplication.restoreOverrideCursor()

1 comment on commit e4c2125

@strk

This comment has been minimized.

Copy link
Contributor

strk commented on e4c2125 Feb 27, 2015

Could you please also include the original commit log in backports ? It's easier to follow history.

Please sign in to comment.
You can’t perform that action at this time.