1
0
Fork 0
mirror of https://github.com/seiichiro0185/sailotp.git synced 2024-05-16 23:50:54 +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,7 +148,8 @@ Dialog {
// There were no parameters -> Add new entry
DB.addOTP(otpLabel.text, otpSecret.text, paramType, otpCounter.text, appWin.listModel.count);
}
// Refresh the main Page
// Refresh the main Page
parentPage.refreshOTPList();
}
}

View file

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

View file

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