Fixed BUG with preset's deleting. Fixed about page

This commit is contained in:
Claudio Maradonna 2017-09-06 16:54:58 +02:00
parent e32b467048
commit 4083d09bc9
5 changed files with 24 additions and 12 deletions

View File

@ -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>

View File

@ -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()
}
}

View File

@ -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

View File

@ -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

View File

@ -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