Fixed BUG with preset's deleting. Fixed about page
This commit is contained in:
parent
e32b467048
commit
4083d09bc9
|
@ -161,7 +161,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|||
GNU General Public License for more details.<br><br>
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.<br><br><br>
|
||||
along with this program. If not, see <a href=\"http://www.gnu.org/licenses\">http://www.gnu.org/licenses.<br><br><br>
|
||||
|
||||
|
||||
All artworks are licensed under a <a href=\"https://creativecommons.org/licenses/by-sa/4.0/\">Creative Commons Attribution-ShareAlike 4.0 International</a>
|
||||
|
|
|
@ -29,8 +29,23 @@ Page {
|
|||
|
||||
model: listModel
|
||||
delegate: ListItem {
|
||||
id: listItem
|
||||
|
||||
width: parent.width
|
||||
|
||||
ListView.onRemove: animateRemoval(listItem)
|
||||
function remove() {
|
||||
remorseAction(qsTr("Deleting"), function() {
|
||||
settings.deletePreset(presetsList.model.get(index).name)
|
||||
|
||||
if (settings.presetsList().length < 1) {
|
||||
pageStack.popAttached()
|
||||
} else {
|
||||
presetsList.model.remove(index)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
onClicked: {
|
||||
settings.preset = presetsList.model.get(index).name
|
||||
|
||||
|
@ -41,13 +56,7 @@ Page {
|
|||
MenuItem {
|
||||
text: qsTr("Delete")
|
||||
|
||||
onClicked: {
|
||||
settings.deletePreset(presetsList.model.get(index).name)
|
||||
|
||||
if (settings.presetsList().length < 1) {
|
||||
pageStack.popAttached()
|
||||
}
|
||||
}
|
||||
onClicked: remove()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -8,8 +8,11 @@
|
|||
# * date Author's Name <author's email> version-release
|
||||
# - Summary of changes
|
||||
|
||||
* Wed Aug 30 2017 Claudio Maradonna <claudio@unitoo.pw>
|
||||
1.0
|
||||
* Wed Sep 06 2017 Claudio Maradonna <claudio@unitoo.pw> 1.0b
|
||||
- Fixed bug with preset's deleting
|
||||
- Fixed license in about page (cutted by html tag)
|
||||
|
||||
* Wed Aug 30 2017 Claudio Maradonna <claudio@unitoo.pw> 1.0
|
||||
- Now you can add inner timers for rounds
|
||||
- New icon
|
||||
- Various bug fixes
|
||||
|
|
|
@ -13,7 +13,7 @@ Name: harbour-boxing-timer
|
|||
%{!?qtc_make:%define qtc_make make}
|
||||
%{?qtc_builddir:%define _builddir %qtc_builddir}
|
||||
Summary: Boxing timer
|
||||
Version: 1.0
|
||||
Version: 1.0b
|
||||
Release: 1
|
||||
Group: Applications/Utilities
|
||||
License: GPLv3
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
Name: harbour-boxing-timer
|
||||
Summary: Boxing timer
|
||||
Version: 1.0
|
||||
Version: 1.0b
|
||||
Release: 1
|
||||
# The contents of the Group field should be one of the groups listed here:
|
||||
# http://gitorious.org/meego-developer-tools/spectacle/blobs/master/data/GROUPS
|
||||
|
|
Loading…
Reference in New Issue