fix spec added patch

This commit is contained in:
tom 2014-03-07 13:46:07 +01:00
parent ed2a2f66f1
commit 312c332744
2 changed files with 12 additions and 4 deletions

View File

@ -101,7 +101,7 @@ class SystemTrayIcon(QtGui.QSystemTrayIcon):
if is_protected:
#hide icon to avoid double clicks and glitches.
self.hide()
password, ok = QtGui.QInputDialog.getText(None, "Password", "Password:", QtGui.QLineEdit.Password)
password, ok = QtGui.QInputDialog.getText(self.myapp, "Password", "Password:", QtGui.QLineEdit.Password)
self.show()
if ok:
#do soemthing
@ -114,10 +114,11 @@ class SystemTrayIcon(QtGui.QSystemTrayIcon):
#self.myapp.raise_()
else:
#fail for some reasons
"No Yubikey NEO found. Please plugin your Yubikey NEO in one of your USB port", QtGui.QMessageBox.Ok)
QtGui.QMessageBox.information(QtGui.QWidget(), self.tr("Warning!"), self.tr("Wrong password or applet is corrupted"))
return
else:
QtGui.QMessageBox.information(QtGui.QWidget(), self.tr("Warning!"), self.tr("No password was provided. A password is required to access the Yubico Authenticator."))
QtGui.QMessageBox.information(QtGui.QWidget(), self.tr("Warning!"), self.tr("A password is required to access the Yubico Authenticator."))
return
#the neo is not protected go on with standard operations!
else:

View File

@ -175,11 +175,18 @@ shutil.copy2('yubioath-128.png', 'dist/Yubico Authenticator/yubioath-128.png')
if OSX:
shutil.copy2('yubioath-128.png', 'dist/Yubico Authenticator.app/Contents/MacOS/yubioath-128.png')
shutil.copy2('yubioath-128.png', 'dist/Yubico Authenticator.app/Contents/Resources/yubioath-128.png')
shutil.copy2('yubioath-128.icns', 'dist/Yubico Authenticator.app/Contents/MacOS/yubioath-128.icns')
shutil.copy2('yubioath-128.icns', 'dist/Yubico Authenticator.app/Contents/Resources/yubioath-128.icns')
shutil.copy2('yubico.ico', 'dist/Yubico Authenticator.app/Contents/MacOS/yubico.ico')
shutil.copy2('yubico.png', 'dist/Yubico Authenticator.app/Contents/MacOS/yubico.png')
shutil.copy2('yubico-logo81.png', 'dist/Yubico Authenticator.app/Contents/MacOS/yubico-logo81.png')
shutil.copy2('yubioath-128.icns', 'dist/Yubico Authenticator.app/Contents/MacOS/yubioath-128.icns')
shutil.copy2('yubioath-48.icns', 'dist/Yubico Authenticator.app/Contents/Resources/yubioath-48.png')
shutil.copy2('yubioath-48.icns', 'dist/Yubico Authenticator.app/Contents/MacOS/yubioath-48.icns')
shutil.copy2('yubioath-48.icns', 'dist/Yubico Authenticator.app/Contents/Resources/yubioath-48.icns')
shutil.copy2('yubioath-48.png', 'dist/Yubico Authenticator.app/Contents/MacOS/yubioath-48.png')
shutil.copy2('yubioath-48.png', 'dist/Yubico Authenticator.app/Contents/Resources/yubioath-48.png')
#######################