Fix calls to sig_db_dump/restore
issue2814 (transplanted from 2105a3798a43a68f2813a0258597c20d653c87a0)
This commit is contained in:
1 parent
1e452b1eea
commit
f4dbcd33da
1 file changed
+2
-2
+2
-2
@@ -1311,7 +1311,7 @@ class Main(object):
|
||||
self.refresh_ssl()
|
||||
common.message(_("Database dropped successfully!"))
|
||||
|
||||
def sig_db_restore(self, widget):
|
||||
def sig_db_restore(self, widget=None):
|
||||
if not self.sig_logout(widget):
|
||||
return False
|
||||
filename = common.file_selection(_('Open Backup File to Restore...'),
|
||||
@@ -1353,7 +1353,7 @@ class Main(object):
|
||||
else:
|
||||
common.message(_('Database restore failed!'))
|
||||
|
||||
def sig_db_dump(self, widget):
|
||||
def sig_db_dump(self, widget=None):
|
||||
if not self.sig_logout(widget):
|
||||
return False
|
||||
dialog = DBBackupDrop(function='backup')
|
||||
|
||||
Reference in new issue
Block a user