Ensure developer extras are enabled for webinspector

This commit is contained in:
Florian Bruhin 2014-04-17 15:46:29 +02:00
parent 975fa013c4
commit dea30e3f4d

View File

@ -136,7 +136,11 @@ class MainWindow(QWidget):
if self.inspector.isVisible():
self.inspector.hide()
else:
self.inspector.show()
if not config.get('webkit', 'developer_extras_enabled'):
self.status.disp_error("Please enable developer-extras before "
"using the webinspector!")
else:
self.inspector.show()
@pyqtSlot()
def update_inspector(self):