Show dialog on copy failure. By @samuel-w (#647)

This commit is contained in:
Samuel Woon 2020-09-27 02:28:49 -05:00 committed by GitHub
parent 9568a1b410
commit 74eb279dfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -214,3 +214,9 @@ class RepoTab(RepoBase, RepoUI, BackupProfileMixin):
if self.repoSelector.currentIndex() > 2: if self.repoSelector.currentIndex() > 2:
URL = self.repoSelector.currentText() URL = self.repoSelector.currentText()
QApplication.clipboard().setText(URL) QApplication.clipboard().setText(URL)
else:
msg = QMessageBox()
msg.setStandardButtons(QMessageBox.Ok)
msg.setParent(self, QtCore.Qt.Sheet)
msg.setText(self.tr("Select a repository from the dropdown first."))
msg.exec_()