(self)
| 3362 | self.click_pushButtonAddSubscription() |
| 3363 | |
| 3364 | def on_action_SubscriptionsDelete(self): |
| 3365 | if QtGui.QMessageBox.question( |
| 3366 | self, "Delete subscription?", |
| 3367 | _translate( |
| 3368 | "MainWindow", |
| 3369 | "If you delete the subscription, messages that you" |
| 3370 | " already received will become inaccessible. Maybe" |
| 3371 | " you can consider disabling the subscription instead." |
| 3372 | " Disabled subscriptions will not receive new" |
| 3373 | " messages, but you can still view messages you" |
| 3374 | " already received.\n\nAre you sure you want to" |
| 3375 | " delete the subscription?" |
| 3376 | ), QtGui.QMessageBox.Yes | QtGui.QMessageBox.No |
| 3377 | ) != QtGui.QMessageBox.Yes: |
| 3378 | return |
| 3379 | address = self.getCurrentAccount() |
| 3380 | sqlExecute('''DELETE FROM subscriptions WHERE address=?''', |
| 3381 | address) |
| 3382 | self.rerenderTabTreeSubscriptions() |
| 3383 | self.rerenderMessagelistFromLabels() |
| 3384 | self.rerenderAddressBook() |
| 3385 | shared.reloadBroadcastSendersForWhichImWatching() |
| 3386 | |
| 3387 | def on_action_SubscriptionsClipboard(self): |
| 3388 | address = self.getCurrentAccount() |
nothing calls this directly
no test coverage detected