mirror of https://github.com/borgbase/vorta
Show dialog on copy failure. By @samuel-w (#647)
This commit is contained in:
parent
9568a1b410
commit
74eb279dfd
|
@ -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_()
|
||||||
|
|
Loading…
Reference in New Issue