Added debug logging to OnionShareGui, SettingsDialog, TorConnectionDialog, and Alert objects

This commit is contained in:
Micah Lee 2017-05-16 11:31:52 -07:00
parent 3c88bc828b
commit f5ae4403ea
4 changed files with 46 additions and 1 deletions

View file

@ -27,6 +27,8 @@ class Alert(QtWidgets.QMessageBox):
"""
def __init__(self, message, icon=QtWidgets.QMessageBox.NoIcon, buttons=QtWidgets.QMessageBox.Ok, autostart=True):
super(Alert, self).__init__(None)
common.log('Alert', '__init__')
self.setWindowTitle("OnionShare")
self.setWindowIcon(QtGui.QIcon(common.get_resource_path('images/logo.png')))
self.setText(message)