Skip to content
Snippets Groups Projects
Commit b57e9791 authored by Michael DM Dryden's avatar Michael DM Dryden
Browse files

data_view: suppress error when nothing selected.

parent da3a5663
Branches
Tags
1 merge request!10Move to gtk3 and new command protocol
......@@ -47,7 +47,12 @@ class DataPage(object):
def combobox_changed(self, object):
"""Switch displayed data buffer."""
self.textview.set_buffer(self.buffers[self.combobox.get_active_id()])
try:
self.textview.set_buffer(
self.buffers[self.combobox.get_active_id()]
)
except KeyError:
pass
class InfoPage(object):
def __init__(self, notebook, name="Info"):
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment