"MainWindow","You may manage your keys by editing the keys.dat file stored in\n%1 \nIt is important that you back up this file. Would you like to open the file now? (Be sure to close Bitmessage before making any changes.)").arg(shared.appdata),QtGui.QMessageBox.Yes,QtGui.QMessageBox.No)
ifreply==QtGui.QMessageBox.Yes:
self.openKeysFile()
shared.openKeysFile()
defclick_actionDeleteAllTrashedMessages(self):
ifQtGui.QMessageBox.question(self,_translate("MainWindow","Delete trash?"),_translate("MainWindow","Are you sure you want to delete all trashed messages?"),QtGui.QMessageBox.Yes,QtGui.QMessageBox.No)==QtGui.QMessageBox.No:
@ -1428,17 +1427,10 @@ class MyForm(QtGui.QMainWindow):
@ -2406,8 +2397,7 @@ class MyForm(QtGui.QMainWindow):
ifshared.appdata!=''andself.settingsDialogInstance.ui.checkBoxPortableMode.isChecked():# If we are NOT using portable mode now but the user selected that we should...
# Write the keys.dat file to disk in the new location
sqlStoredProcedure('movemessagstoprog')
withopen('keys.dat','wb')asconfigfile:
shared.config.write(configfile)
shared.writeKeysFile()
# Write the knownnodes.dat file to disk in the new location
shared.knownNodesLock.acquire()
output=open('knownnodes.dat','wb')
@ -2431,8 +2421,7 @@ class MyForm(QtGui.QMainWindow):
os.makedirs(shared.appdata)
sqlStoredProcedure('movemessagstoappdata')
# Write the keys.dat file to disk in the new location
# Add a new column to the pubkeys table to store the address version.
# We're going to trash all of our pubkeys and let them be redownloaded.
@ -275,8 +270,7 @@ class sqlThread(threading.Thread):
ifnotshared.config.has_option('bitmessagesettings','identiconsuffix'):# acts as a salt
shared.config.set('bitmessagesettings','identiconsuffix',''.join(random.choice("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")forxinrange(12)))# a twelve character pseudo-password to salt the identicons
# Since we've added a new config entry, let's write keys.dat to disk.