1
0
Fork 0
mirror of https://github.com/seiichiro0185/sailotp.git synced 2024-11-22 07:39:42 +00:00

Fixed a small bug found by harbour-QA

This commit is contained in:
seiichiro 2014-07-13 12:03:02 +02:00
parent 91dfc732a3
commit b039fa737a
3 changed files with 7 additions and 4 deletions

View file

@ -148,6 +148,7 @@ Dialog {
// There were no parameters -> Add new entry // There were no parameters -> Add new entry
DB.addOTP(otpLabel.text, otpSecret.text, paramType, otpCounter.text, appWin.listModel.count); DB.addOTP(otpLabel.text, otpSecret.text, paramType, otpCounter.text, appWin.listModel.count);
} }
// Refresh the main Page // Refresh the main Page
parentPage.refreshOTPList(); parentPage.refreshOTPList();
} }

View file

@ -54,9 +54,11 @@ Page {
// Reload the List of OTPs from storage // Reload the List of OTPs from storage
function refreshOTPList() { function refreshOTPList() {
otpList.visible = false; otpList.visible = false;
otpList.model = null; // Hack to prevent unaccessible pulley after List refresh
appWin.listModel.clear(); appWin.listModel.clear();
DB.getOTP(); DB.getOTP();
refreshOTPValues(); refreshOTPValues();
otpList.model = appWin.listModel; // Hack to prevent unaccessible pulley after List refresh
otpList.visible = true; otpList.visible = true;
} }
@ -186,8 +188,8 @@ Page {
} }
} }
} else { } else {
DB.resetFav(title, secret) DB.resetFav(title, secret);
appWin.setCover(-1) appWin.setCover(-1);
appWin.listModel.setProperty(index, "fav", 0); appWin.listModel.setProperty(index, "fav", 0);
} }
} }

View file

@ -1,7 +1,7 @@
Name: harbour-sailotp Name: harbour-sailotp
Summary: SailOTP Summary: SailOTP
Version: 1.0 Version: 1.0
Release: 1 Release: 2
Group: Security Group: Security
URL: https://github.com/seiichiro0185/sailotp/ URL: https://github.com/seiichiro0185/sailotp/
License: "BSD\t" License: "BSD\t"