Make the 'load' button usable again after loading has failed.

This commit is contained in:
Clément Schreiner 2012-03-25 08:57:29 +02:00
commit 4b8e2937be

View file

@ -117,6 +117,8 @@ class MainWindow(QtMainWindow):
content += '\n%s\n' % to_unicode(backtrace) content += '\n%s\n' % to_unicode(backtrace)
QMessageBox.critical(self, self.tr('Error while loading page'), QMessageBox.critical(self, self.tr('Error while loading page'),
content, QMessageBox.Ok) content, QMessageBox.Ok)
self.ui.saveButton.setEnabled(True)
self.ui.saveButton.setText("Load")
def savePage(self): def savePage(self):
if self.backend is None: if self.backend is None: