Start checking when return is pressed in the URL label.

This commit is contained in:
Bastian Kleineidam 2010-11-20 19:58:17 +01:00
parent 167f2bf5a9
commit c0c8f83827

View file

@ -185,11 +185,13 @@ Version 2 or later.</p>
"""Display debug dialog."""
self.debug.show()
def on_controlButton_clicked (self):
def start (self):
"""Start a new check."""
if self.status == Status.idle:
self.check()
on_controlButton_clicked = on_urlinput_returnPressed = start
def check (self):
"""Check given URL."""
self.controlButton.setEnabled(False)